I\'ve been using windows in a class I\'ve been taking but I am trying to run a basic code to figure out how to open/close/input/output from files on Xcode and the code I usu
Here's a completely different approach: Have Xcode copy the input file for you.






Now every time you build your project, the input file will be copied to the same folder as the executable no matter where it is built. Of course, to see the output file, you'll still need to find the executable in Finder.