- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I want to develop a code with intel fortran (version 11.1) to process the binary output of an executable file, which is compliled in gfortran (ver 4.1.2), the procedure of file opening and reading have been proven no erros. However, the dara read is just zero. But when I change the compiler to gfortran, the data reading is correct when comparing with the original ASCII output.
The file processing specifer I used as listed as follows:
OPEN(UNIT=IOBIN, FILE=FILNAM, ERR=100, STATUS='UNKNOWN', ACCESS='SEQUENTIAL', FORM='UNFORMATTED',CONVERT='LITTLE_ENDIAN',IOSTAT=IOS)
READ(UNIT=IOBIN,ERR=200,IOSTAT=IOS) LENGTH,(WORK(I),I=1,LENGTH)
CLOSE(UNIT=IOBIN, ERR=300, STATUS='KEEP',IOSTAT=IOS)
Compiling options are : -assume byterecl
For my question, is there other complie option or file processing specifiers should be added.Thanks for any suggestions.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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