LOF()

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 CMM2

Syntax:
LOF( [#]fnbr )

Description:
For a file on the SD card this will return the current length of the file in bytes. 

For a serial communications port opened as 'fnbr' this function will return the space (in characters) remaining in the transmit buffer. 
Note that when the buffer is full MMBasic will pause when adding a new character and wait for some space to become available. The # is optional.

 

 

Last edited: 29 September, 2020