- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Some one give me any idea to solve this issue, please.
I wonder that Intel Fortran should recommend how to check size of file in source code.
e.g. INQUIRE and some specifier of it
My idea is recl specifier of INQURE. I attempt to use it.
Actual sorce code
---------------------------------------------------------------------
integer record-length
INQUIRE(file='st-file',recl=record-lenght)
write (*,*) 'st-file length',record-lenght
---------------------------------------------------------------------
Then the last 'write' uncorrect size of st-file.
What's wrong? Please let me know how to solve.
Thanks.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
File length is not record length. All INQUIRE (RECL=) will tell you is the value used in an OPEN to open a current unit. Otherwise no value is available.
What you want is GETFILEINFOQQ.
What you want is GETFILEINFOQQ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Thank you , Steve.
Let me ask you one further question.
Will GETFILEINFOQQ workin Conpaq Fortran as same as in Intel Fortran?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, exactly the same. If you want your source code to work with both compilers, use USE DFLIB to make the routine available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Steve,
Thank you very much for helpful suggestion.
My problem was immediately solved by your favor.
Thank you again.

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