I've got a question about debugging with MS VisualStudio. I've got a .cpp-file with a ifstream-command which reads from the file "input.txt".
I put the txt in the same folder where i found the .exe after building the project and if I doubleclick the .exe it works, but if I use the debugging with VS it can't find the input.txt. Where do I have to put it then?
Im guessing with the debug version of the exe as opposed to the release folder version, look for a folder named "Debug" in the project and put the file in there.
No, I tried, but that doesn't help.
With debugging I don't mean the Debug configuration, I mean clicking on the small green triangle (or pressing F5) with Release configuration.
Well when you debug a program it uses whichever configuration you have it set to, i.e. release or debug.
If you set the program to debug configuration in project properties and then paste the file in the debug folder next to the program it should work