Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

GetFileInfoQQ

Stephen_Sutcliffe
New Contributor II
445 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
Honored Contributor III
445 Views

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

0 Kudos
Steve_Lionel
Honored Contributor III
445 Views

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

0 Kudos
Stephen_Sutcliffe
New Contributor II
445 Views

So it is,

FILE$INFOI8 is what I need.

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

Thanks Steve

0 Kudos
Reply