File.Length Function

Returns the length of a file recorded in the directory.

<integer_variable>= File.Length ( path )

Prerequisites

None

Parameters

path

A required String expression that contains the path to the file whose length is returned.

Remarks

This function permits a GPL program to efficiently determine the length of a file by reading this value from a directory.

Examples

Dim len As Integer
len = File.Length(path)
Console.Writeline("Length is " & CStr(len))

See Also

File and Serial I/O | File.ComputeCRC | File.ComputeLength