Question: C++ I need to open a text file with the name of the text file entered by the user, read each line seperately, then read
C++
I need to open a text file with the name of the text file entered by the user, read each line seperately, then read each character in the line tally how many times the the character appears, then write the character and count of how many times the character appears in the line to an output file. Then read the next line in the text file and write the characters & count to a different output file, reapeat this process until all lines of the text file are read. I also need to make sure the letters whether 'A' or 'a' are counted as 'a'. I believe I need to use arrays, getline and ifstream and ofstream.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
