Lasso Soft Inc. > Home

[ file->size ]

Method

Returns size of the file in bytes.

  • Syntax
File Variable->Size
Examples
  • Beginner

To return information about a file:

The [File->Name], [File->Path], and [File->Size] methods can be used to output the name, path, and size (in bytes) of a file. The example below outputs the file name, path, and size delimited by HTML line breaks.

Code

local(File = File('myfile.txt', File_OpenRead, File_ModeChar))
#File->Path
#File->Name
#File->Size
#File->Close

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft