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.
Printable View
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.
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).
Read the FAQ board or search the board, it's a common question!