I made a program that opens a file, which is in the same folder as the project. When I run the program from within Code::Blocks, everything is fine (the working directory is set to the project directory)
However, when I run the actual .exe file, it fails to load the file. If I move the file to the directory of the .exe, it works now, but the same error now occurs when I run the program from within Code::Blocks.
It's as if the working directory is different when I run the program from the .exe... How do I set that working directory?
Thanks in advance