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
As suggested by nepete, edit the scheme, but use $PROJECT_DIR as the custom working directory. Helps with moving the project around, or working in two different environments (e.g., home and office).
BTW. $PROJECT_DIR is one of the Xcode Environment Variables, and also helps with passing file names as command line arguments to programs (settable under "Arguments" in the scheme).