Hello Everyone;
I am new to the world of C++ and I know some file I/O coding but I wanted to know if there was a way for your program to create a file if the requested file does not exist.
Hello Everyone;
I am new to the world of C++ and I know some file I/O coding but I wanted to know if there was a way for your program to create a file if the requested file does not exist.
"If at first you do succeed try not to look astonished!" -- anon
When you save, a file will be created if one doesn't exist.
If a file already exists it will be overwritten (unless specifying APPEND, which continues at the end of it).
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Read the FAQ board or search the board, it's a common question!