Question: C++ PROGRAM Create a file named dummy.txt manually and store any text of 500 words and perform following operations: a) Read file and print data
C++ PROGRAM Create a file named dummy.txt manually and store any text of 500 words and perform following operations: a) Read file and print data on screen. b) Count total letters, words and sentences from text file. c) Create a file named info-dummy.txt and store total letters, words and sentences in following pattern: Letters: 125 Words: 70 Sentences: 8 d) Read above file named info-dummy.txt and add letters, words, sentence and print on screen. Letters: 125 Words: 70 Sentences: 8 Output: 203 (125+70+8)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
