Home Cooker Classes Others Rice CookerGX
Classes  >  file  >  Length
file class : Length getter

Description

Gets the size of the file.

Syntax

fileInstance.Length

Arguments

None

Return value

ClassDescription
longSize of the file.

Sample code

//anyFile is a instance of file type.

long fileSize = anyFile.Length;

Notes

It's a wrapper of the System.IO.FileInfo.Length.

The size is in bytes.

Links for reference

Copyright © Rice All rights reserved.