Question: I am using C++ and have to find two thing: 1) if my file is empty (file without anything not even white spaces) 2) if

I am using C++ and have to find two thing:

1) if my file is empty (file without anything not even white spaces)

2) if my file is blank (file has only white spaces) e.g (it could be file that has 10 lines and all are white spaces)

How can I find difference between two files if I have to display different things depending on if file has only white space or it does not have anything.

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!