Download SMART KEYBOARD PROGRAMMING MANUAL

Transcript
Smart Keyboard Programming Manual
LOF()
Description
To return the size of file.
Syntax
LOF(FileHandle)
Remarks
An integer is returned to indicate the size of file
Example
DOWNLOAD "LOF.BAS"
OPEN "DATA" FOR APPEND AS #1
WRITE #1;"ABC"
File_length = LOF(1)
PRINT "File_length= "+STR$(File_length)
CLOSE #1
END
EOP
At the end of each write statement, a carriage feed (OA OD) consisting of two
characters are added, thus adding the total to five.
56