- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to open a file that was not generated by a Fortran app.
open (2,file="LAFA.mid", form='binary', access='sequential', &
action="read")
I thought there was a way to do this ?
I just want examine the contents of this file.
Has anyone written an article about this ?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your statement seems OK and will open any file.
Then you must read it block by block into variable(s). Next, you must interpret the contents of these variables (convert to hexa, decode with adapted types if you know the structure of the file...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is your file located in the current directory?
Note, if running from MS Visual Studio, the "current" current directory is that of the solution as opposed to the location of the execuitable (Debug or Release folder). You can change the current directory in the Debug/Release property page.
Jim Dempsey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page