I'm creating a program that maintains a log file. The file is created at the start up of the program and appended to throughout the run. This works perfectly fine, but I went and manually added the program to run at start up in the registry. The program runs as normal, but the file isn't created. using fstream::is_open() says that the file is opened and attached to the stream, but the file itself does not exist.
Now, the obvious solution is to just open the file later, some time after start up, and keep the data in memory until needed, but I am more curious as to why the file isn't created and if there is any way to allow for this other than creating a buffer and creating the file later.