Question:
Polina Raj has used a text editing software to type some text in an article. After saving the article as MYNOTES.TXT , she realised that she has wrongly typed alphabet K in place of alphabet C everywhere in the article. Write a function definition for PURETEXT() in C++ that would display the corrected version of the entire article of the file MYNOTES.TXT with all the alphabets “K” to be displayed as an alphabet “C” on screen .
Note: Assuming that MYNOTES.TXT does not contain any C alphabet otherwise.
Example:
If Polina has stored the following content in the file MYNOTES.TXT :
| I OWN A KUTE LITTLE KAR. I KARE FOR IT AS MY KHILD. |
The function PURETEXT() should display the following content:
| I OWN A CUTE LITTLE CAR. I CARE FOR IT AS MY CHILD. |
C. Sir| Created: 3-Jan-2019 | Updated: 22-Mar-2026|CBSE12A-2017
