GetFileSize
This functions gets a file's size.
Syntax
- int GetFileSize(string path)
Parameters
- path: the path to the file to get the size of.
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)))