Hello. I'm trying to open a file named "global.wdf" for editing. However, is_open() is always returning false. I'm putting global.wdf into my TestProject\Debug folder (which is currently the same directory the .exe file resides in), but is_open() still returns false. Any idea what I'm doing wrong?
If you're running the program through the debugger, you should know that the working directory (which affects the behavior of file-related functions when relative paths are given) may not necessarily be the directory the executable is in.
I've tried putting global.wdf in pretty much every folder of the project. Even when running the executable directly (outside of the IDE), the program still can't find the file.