View Full Version : input/output files in xCode 4.2

Feb 12, 2012, 11:25 AM
When I try to use input/output files in command line tool applications, I can't open it with xCode, I mean, I can't change it with my programm.
I use C++, freopen("input.txt", "r", stdin) to create file.
When I used Microsoft Visual C++ everything was OK, but now...may it be because it is neсessary to write file path?

Feb 12, 2012, 11:55 AM
This might help you. http://forums.macrumors.com/showthread.php?t=1122174

I suspect that the current working directory is not what you expect.