FILELEN
Action
Returns the size of a file
Syntax
lSize = FileLen ()
lSize = FileLen (file)
Remarks
|
lSize |
A Long Variable, which is assigned with the filesize in bytes of the file. |
|
File |
A string or string constant to get the filelength of. |
This function works on any file when you specify the filename. When you do not specify the filename, it works on the current selected file of the DIR() function.
ASM
|
Calls |
_FileLen |
|
|
Input |
|
|
|
Output |
|
|
Example
Print
"File demo"
Print Filelen(
"josef.img")
; " length"
' length of file
Print Filetime(
"josef.img")
; " time"
' time file was changed
Print Filedate(
"josef.img")
; " date"
' file date