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

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.

Links for reference

Copyright © Cooker All rights reserved.