- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
forrtl: severe (39): error during read...
I have received the above-mentioned message during debugging. Here is a code which was used many years ago when a program was running under MS-DOS and MS Fortran 5.0. The file type - unformatted. I suppose a reason of message is the following: the data file assumes that it was written with 16-bit record lengths, but not 32-bit ones. If so and I am right, I wonder how to open the BIO.DAT file in the IVF?
OPEN (UNIT=10,STATUS='OLD',FORM='UNFORMATTED',FILE='BIO.DAT')
READ (UNIT=10) BIO
REWIND 10
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This read error suggests that the data in the File BIO.DAT does not match the variable BIO. What is the declaration of BIO and how was the file BIO.DAT created? The UNFORMATTED is raw binary data so if the file was created under some older system there is a possibility that the data will be incompatible and some data manipulation (bit twiddling) will be required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The question is solved. I need answers no more.
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