File_GetLength (filehandle)

Result Type:  number

Definition:  Gets the length of the file in bytes.


let fd = File_Open("a file in the MoneyWorks Automation dir.txt")
if fd <> NULL
    let len = File_GetLength(fd)

Availability:  available within MWScript handlers.

See Also:

File_Close: File functions for creating/reading/writing text files

File_GetMark: Get current read/write position

File_Move: Rename/move a file

File_Open: Open a file

File_Path: Get the full path of an open file

File_Read: Read text from current position

File_ReadLine: Read to end of line from current position

File_SetMark: Set Current read/write position

File_Write: Write text at current position

WriteToTempFile: Create a temp file containing the string