Skip to end of metadata
Go to start of metadata

Availability

This routine is available starting with SIL Engine™ 2.6.7.

Syntax

fileSize(file)

Description

Returns the size for a given file.

Parameters

Parameter name

Type

Required

Description

file

string

Yes

Path depicting a file.

Return type

number

Example

number len = fileSize("C:/file1.txt");

Notes

It is recommended that you use forward slashes ( / ) for file paths.

See also