Rebooting the QBasic we all know and love!
Returns the number of bytes in a file.
LOF(file_number)
LOF
file_number is the file number assigned to the file in its OPEN statement.
You cannot use LOF with devices.
OPEN "\CONFIG.SYS" FOR INPUT AS #1 PRINT "File size in bytes is"; LOF(1) CLOSE #1