Question: Write the program in C++ that open, read and close the file. The file name is ( example.txt) just open and close the file to

Write the program in C++ that open, read and close the file. The file name is ( example.txt) just open and close the file to see if its there anything there.

Input file that looks like this:

This is the great season, but I do not know why winter, is so cold!

Print the error messages:

> If a file cannot be opened or read for any reason, print the error message Can not open AND continue to the next file.

> If there is empty file then it should print messages Its empty file if there is no integer in the file then print messages no integer

> Find out the length of each words and if its not 5 then print the error message again. If there is repeated then print the messages.

* Some of the errors can not be checked for until the file is opened.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!