I use C ++ and try to output the file to a specific location, a folder with the specified name in the same directory as the executable. It is not possible to find a great resource for an easy way to do this, but I know that it should be possible.
My example. I save the log file and instead of saving it in the same directory as the executable file, it saves / logs /
Thank you for your time!
Edit: I used mkdir to create the folder, but how can I output it to this folder. Is mkdir a good product? I want to know the best way to do this, not necessarily the easiest.
source share