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. .