FileGetLength - method of object Pm
Getting the size of the file (in bytes).
FileGetLength(sFile As String) As Long
n = Pm.FileGetLength(sFile)
|sFile||(String) file name (with the path). If a full path is not entered, it is completed relatively according to the application file folder. |
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
Returns the file length (in bytes). If the method fails, the return value is 0.
FileSize = Pm.FileGetLength("#data:file.txt")