Question: Write a C++ program, which initializes a string variable to the content Time is a great teacher but unfortunately it kills all its pupils. Berlioz
Write a C++ program, which initializes a string variable to the content "Time is a great teacher but unfortunately it kills all its pupils. Berlioz" and outputs the string to the disk file OUT.TXT. you have to include all the header files .
a) Write a user-defined function in C++ to read the content from a text file OUT.TXT, count and display the number of alphabets present in it.
b) Write a function to count the number of blank present in a text file named "OUT.TXT". NOTE : ALL RELATED TO FILE HANDLING !
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
