Hallo,
Is there an equivalent in C++ to ChDir in Visual Basic?
I want to change the current directory to the directory containing the executable, at the start of my program, so that I can use fopen to open files within that directory elswehere in my code, without having to specify a path.
- Frink
PS. I'm not great at C, so if someone wants to give me the code to set the directory based on the command in argv[0], that would be cool
Is there an equivalent in C++ to ChDir in Visual Basic?
I want to change the current directory to the directory containing the executable, at the start of my program, so that I can use fopen to open files within that directory elswehere in my code, without having to specify a path.
- Frink
PS. I'm not great at C, so if someone wants to give me the code to set the directory based on the command in argv[0], that would be cool