Data File Handling - Text File (SD/4/A/293)

Write function definition for WORD4CHAR() in C++ to read the content of a text file "FUNNY.TXT", and display all those words, which has four characters to it.

Example: If the content of FUNNY.TXT is as follows:

When I was a small child, I used to play in the garden with my grand mom. Those days were amazingly funful and I remember all the moments of that time 

The function WORD4CHAR() should display the following.

When used play with days were that time





Click Here for Solution




No comments

Post your comments

Powered by Blogger.