Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Error on CLOSE statement

davidgraham
Beginner
541 Views
I am opening then deleting a file.
C80 is the file and it exists

open (98,FILE=c80)
close (98,STATUS='DELETE')

I get the error message :
inconsistent open/close parameters, unit 98, file "unknown"

I don't understand why I'm getting an error, and why it says file "unknown" rather than give the name of the file.

Can anyone help?

Thanks,
David
0 Kudos
1 Reply
davidgraham
Beginner
541 Views
After some more investigation I found that the file was "read only".
It would have been nice if the error message had said this and that the file name was given.
0 Kudos
Reply