Lasso Soft Inc. > Home

[ File_GetSize ]

Method

[File_GetSize] returns the size in bytes of a file. Accepts one parameter, the name of the file to be inspected.

The file tags are protected by four different permissions. The user must have permission to access the file and it's parent directory.

  • Syntax
File_GetSize('string')
Examples
  • Beginner

 

To display the size of a file in bytes:

Use the [File_GetSize] method. The following example inspects a file named myfile.txt from the root of the Web serving folder.

Code

File_GetSize('/myfile.txt')

Result

1024

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