Hello all,
I am writing a C++ program using Xcode 3.2. I need the program to open an input file and then eventually output a file. I have included <fstream> in my project and have done all of the setup correctly. I realized that my file is not being opened because it was in the wrong directory. I placed it in the ../build project directory with the target file, but it is not being read in that location. When I output a file, it is created in my User folder directory. Is there a way to change the settings in Xcode so that it will read files from and output files to the build folder within the project directory (in the same location as the executable)?
Any help would be much appreciated! Thanks!
I am writing a C++ program using Xcode 3.2. I need the program to open an input file and then eventually output a file. I have included <fstream> in my project and have done all of the setup correctly. I realized that my file is not being opened because it was in the wrong directory. I placed it in the ../build project directory with the target file, but it is not being read in that location. When I output a file, it is created in my User folder directory. Is there a way to change the settings in Xcode so that it will read files from and output files to the build folder within the project directory (in the same location as the executable)?
Any help would be much appreciated! Thanks!