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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started