|
|
|
|
Functions
MioScript Reference
|
|
Syntax
Parameters
Return value
| Size of the file in bytes, -1 if not found. |
Description
| Returns the size of a file, or -1 if not found. |
MioScript Sample Code
&file_size = disk.file.size(&filename)
alert("The fize of the file is "&file_size" bytes.")
// OR
if(disk.file.size(&filename) > 0)
alert("The file exists!")
if.end
// OR
if(disk.file.size(&filename) <= 0)
alert("File not found!")
if.end |
|
|
|