say you have the following code:
How would I know if the "mystream << 55" actually worked and wrote the 55 to the file? The fstream part of C++ seems heavily documented in the usage of what you can do, but no ones seems interested in error handling.Code:fstream mystream; if (mystream.is_open()) { mystream << 55; mystream.close(); }