- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In i/o to binary files, what is the maximum direct access value allowed by Intel fortran?
For example:
integer*1 ibyte
integer*8 i
integer*8 i
open(1,input,access='direct',recl=1) ! 1 byte records
inquire(1,flen=length) ! length =length of file
read(1,rec=i) ibyte
inquire(1,flen=length) ! length =length of file
read(1,rec=i) ibyte
Using Intel fortran, can rec, flen and length be set to integer*8 and get around the 2**31-1 limitations of my current Lahey compiler.
Wayne
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel Fortran does not support the non-standard FLEN keyword on INQUIRE. (There are other ways of getting the file size, however.) But it does support direct access files larger than 2GB. The individual records are limited to 2GB. Record numbers can be INTEGER*8 and exceed 2GB.

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