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

OPEN bug?

dondilworth
New Contributor II
427 Views
I have this in my code:

OPEN(23,FILE='W/G CHANGES',STATUS='REPLACE',FORM='FORMATTED')

The file currently does not exist. When I run in debug mode, an error box appears and says the file does not exist. But it does not have to exist with STATUS="REPLACE". What's going on?

0 Kudos
3 Replies
bmchenry
New Contributor II
427 Views
i'm guessing it may be an issue with using / in the file name.
the system may think everything after it is an argument?
give it a try w/o the / in the file name.
0 Kudos
Steven_L_Intel1
Employee
427 Views
What has happened is that the file system "helpfully" converted the forward slash, which is not valid in a filename, to a backslash. This then indicates there should be a "w" subfolder of SYNOPSYS, which there isn't, and then you get the error.

You'll need to use a different name for the file.
0 Kudos
dondilworth
New Contributor II
427 Views
Right.

Correct.

Thank you.
0 Kudos
Reply