title: Problems of reading and writing files when using Visual Studio to run C++ programs
body: <p>Recently I'm tring to use Visual Studio to write c++ programs. However, I don't know where to put the input and output files which the program will read. I tried to put the input and output files in the directory ''...\Projects\ConsoleApplication\ConsoleApplication'', which is the same directory with ConsoleApplication.vcxproj file. This works well when I press the start debugging button(F5). However, when I press the start without debugging button(ctrl+F5). The program can't read and write to the files. Can anyone explain what happended?</p>