Where to place file in order to read?
问题 Hey, where do I place a text file that I'm trying to read using fstream? In this tutorial, http://www.gamedev.net/reference/articles/article1127.asp, they say ifstream fin("input.txt"); where would "input.txt" be located? Before I tried directing a path to the file by doing this "C:\Users\XXXXXXX\Documents\test.in". This however does not seem to work, Incorrect data input with fstream. I'm using CodeBlocks. Thanks in advance. 回答1: input.txt should be in the working directory. Usually the