LOF( [#]nbr )
For a file this will return the current length of the file in bytes.
For a serial port this will return the number of bytes waiting in the transmit buffer (to be sent out on the Tx line).
The # is optional.
OPEN AS COLSOLE