If you donβt want to fit into Xcode, fearing that you might violate some other settings, do the following:
As soon as you create and run a console program or application, go to the list of files, usually on the left side, where the project is laid out, find the Projects directory, right-click or select Select and select Show in Finder. Here Xcode resets your builds every time you run it for this particular project. Each workspace will have its own build folder. You must find the file that you selected or created there if you want to add your own file, just drag it and then you can call it from the console or application program: myfile.open ("file.txt");
Or simply change the working directory for the project and use this folder, which is probably much more accessible than / Developer / Gibberish / Build / Debug / what.
This makes it easy to port your code to Win32 or other systems, at least for me.
source share