I have an application with an OPEN statement specifying a static filename for program input data accessed with READ statements (i.e., FILE = 'MY.in') and the same situation for program output via WRITE statements (i.e., FILE = 'MY.out'). I would like the ability for the user to store the input files in a working directory they create to meet their needs before program execution and the output files produced in the working directory during program execution. Compiling the program with Xcode 4 requires the input file to be located in the root directory and the output files are produced there also. What options or settings do I need to make to change this, so that the files will be saved in a working directory created to meet the needs of the user?
For more complete information about compiler optimizations, see our Optimization Notice.