Using a text editor (i.e. Notepad), create a text file called Text1.txt and place it into the root directory C:/.
Fill Text1.txt with a sentence and save the file using the text editor menu.
Then, write a C++ program that performs the following:
1. Reads the sentence from the file Text1.txt and display it on the screen.
2. Counts the number of characters of the sentence (including the whitespaces, but excluding the terminating NULL) and displays such information.
3. Replaces the original sentence in Text1.Txt with the reversed sentence (i.e “the cat is on the table” with “elbat eht no si tac eht”) and saves the updated file Text1.txt.
NOTE: Every file must be explicitly opened and then closed immediately after the read/write operations.
I'm inbetween using an array or a string, i havent a clue which would be simpler to use...
And I'm a good visual learner so if u could leave snippits of programming with comments to help me understand, that would be greatly appreciated. Thanks!