|Nov 3, 2008, 05:09 PM||#1|
C++ Xcode file location help!
Basically this is for my aero eng course, so no changing coding language
Im trying to open a file from where Xcode stores the executable, IE in the debug folder.
/* open file for input */ inf=fopen("datafile.txt","r");
I would like it to read from the Debug folder in the project folder.
I've tried a few things but with no success.
|Nov 3, 2008, 06:46 PM||#2|
Did you try something like
fopen ("/this/is/the/path/to/my/Debug/file.txt", "r")yet?
"Everyone knows the inch is better than the centimeter, because it is bigger."
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|How to know the path of the file location from spotlight?||hajime||Mac Basics and Help||7||Nov 25, 2013 11:25 AM|
|Downloaded File Location - Anomaly?||crjackson2134||OS X 10.8 Mountain Lion||5||Jun 10, 2013 07:49 PM|
|Aperture file location question||lraymond||Mac Applications and Mac App Store||2||Sep 10, 2012 09:36 PM|
|App to Find a File's Location in 10.7?||macdaddy57||OS X||3||Sep 4, 2012 08:02 PM|
|Xcode installation location.||MacMan988||Mac Programming||5||Jul 20, 2012 12:40 PM|
All times are GMT -5. The time now is 06:50 PM.