- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
I'm wondering if anyone knows of a way (in Fortran, of course) to find out if a filehas theread-only attribute turned on. I tried using theINQUIRE statement with the READWRITE specifier, but that seems to only work if I've already opened the file. I'm trying to find out about the file without opening it.
In the meantime, I've found a way to do this using a system call and tapping into the ATTRIB command in DOS, but this is ugly and I'm looking for a, preferably,standard-compliant method.
Thanks.
Michael
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In standard Fortran, no. In Intel Fortran, GETFILEINFOQQ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, good. That'll do.
Thanks.
Michael

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page