Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
73 Views

GetFileInfoQQ

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
Highlighted
Black Belt
73 Views

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

0 Kudos
Highlighted
Black Belt Retired Employee
73 Views

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

0 Kudos
Highlighted
73 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