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. Code: /* open file for input */ inf=fopen("datafile.txt","r"); Reads it from my home folder (Where the docs folder etc is). I would like it to read from the Debug folder in the project folder. I've tried a few things but with no success. Anyone help? Cheers!