Lof()

Syntax

Length.q = Lof(#File)
Description
Returns the length of the specified file.

Parameters

#File The file to use.

Return value

Returns the length of the file in bytes.

Example

  If CreateFile(0, "Text.txt")         ; we create a new text file
    WriteString(0, "Hello world")
    
    Debug "Length of file: " + Lof(0) ; will print '11'
    CloseFile(0)                       
  EndIf

See Also

Loc(), FileSeek()

Supported OS

All

<- Loc() - File Index - OpenFile() ->