Hey Everyone !
I'm trying to place a text file into my program's project directory.
I followed the instructions below.
But, my code doesn't appear to be linking with the file. My output is in the bottom right of the photo below.
Help ! Please and thank you. ;o)
Hi there,
I think the answer on this https://stackoverflow.com/questions/9295043/xcode-4-c-project-add-file-to-build-directory might help you. Alternatively, you can pass the path of your file as a command line argument to your program. The issue here is that your program is looking for the text file in the same directory that the application is in, and it’s not there.