Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

GetFileInfoQQ

Stephen_Sutcliffe
New Contributor I
218 Views

I am trying to use the GetFileInfoQQ function to get the information relating the files including the size. Unfortunately if the files are large the file size is returned as -1. This seems to occur when the number of bytes in the file is greater than the integer(4) variable component limit is exceeded. Is there a work round for this? It would be great if the file size units could be specified. These days MB or even GB would seem more appropriate than bytes. Alternatively integer(8) components could be an option in a similar function GetFileInfoQQEx.

Thanks

Steve

 

0 Kudos
3 Replies
mecej4
Black Belt
218 Views

Current Fortran provides a standard way of finding the file size: INQUIRE(..., SIZE = myFileSize, ...).

Steve_Lionel
Black Belt Retired Employee
218 Views

I suggest that you read the documentation for GETFILEINFOQQ. The functionality you request is already there.

Stephen_Sutcliffe
New Contributor I
218 Views

So it is,

FILE$INFOI8 is what I need.

I might have found this if F1 help was still working.

Thanks Steve

Reply