file class : Length getter
Description
Gets the size of the file.
Syntax
fileInstance.Length
Arguments
None
Return value
Class | Description |
long | Size of the file. |
Sample code
1: | file f = new file("c:\somewhere..."); |
2: | long fileSize = f.Length; |
Notes
It's a wrapper of the System.IO.FileInfo.Length property.
The size is in bytes.