I'm programming in C++, using Xcode as my development environment.
I have a program that saves information in log files. Currently, all of the log files get put in the same directory as the executable. However, I'd like to put the log files in a new folder created by the program that corresponds to the user id.
Is there a way to create a new folder when creating an output file?
I have a program that saves information in log files. Currently, all of the log files get put in the same directory as the executable. However, I'd like to put the log files in a new folder created by the program that corresponds to the user id.
Is there a way to create a new folder when creating an output file?