GetFileSize

This functions gets a file's size.

Syntax

Parameters

Returns

Returns the size of the specified file, in bytes.

Example

--Create a file
local path = "MyFile.txt"
FileSystem:CreateFile(path)

--This will print out '0' because the file was just created
System:Print((FileSystem:GetFileSize(path)))