I have previously used a windows open file dialog box, which I am guessing changes the directory to whatever I selected there.
So when I call ifstream f1("file.txt") it only looks for the file in the directory I chose with the dialog box. How do I set the directory back to the one where the program is running from?
I guessed this was a general c++ question not a windows one, despite the dialog box. Correct me if I am wrong, but I desperately need an answer!
thanks a lot,