Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

problem in open a new file for output data in Xcode 9. with intel fortran 2019

gao__zhiming
Beginner
519 Views

When opening a file with the filename containing the path such as "/data", I can build and run it on Windows system and command line run on Mac. but it does not work on Xcode on Mac.  I must change the path to be the absolute path such as "/Users/jack/Documents/codesfile/data", it can run on Xcode.  How can I solve this problem ? It has a good definition for the filename and file path for opening a new file on Xcode ???  Thanks very much!

0 Kudos
1 Reply
Steve_Lionel
Honored Contributor III
519 Views

I would not have expected "/data" to do what you want in any of those cases, as it is an absolute path. "./data" should work. I'll guess that in Xcode, the default folder is not the same as in your other environments.

0 Kudos
Reply