FILELEN

FILELEN

Top  Previous  Next

Action

Returns the size of a file

 

 

Syntax

lSize = FILELEN ()

lSize = FILELEN (file)

 

 

Remarks

lSize

A Long Variable, which is assigned with the file size in bytes of the file.

File

A string or string constant to get the file length 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.

 

 

See also

INITFILESYSTEM , OPEN , CLOSE, FLUSH , PRINT, LINE INPUT, LOC, LOF , EOF , FREEFILE , FILEATTR , SEEK , BSAVE , BLOAD , KILL , DISKFREE , GET , PUT , FILEDATE , FILETIME , FILEDATETIME , DIR , WRITE , INPUT

 

 

ASM

Calls

_FileLen

 

Input

 

 

Output

 

 

 

 

Partial 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