Home > lang > lof 
 en fr de es it nl pl pt pt_BR mk sq hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Lof
Length = Lof ( Stream AS Stream ) AS Long

Returns the length of the opened stream Stream.

Example

OPEN sFileName FOR READ AS #hFile
...
PRINT "File length is "; Lof(hFile)

If the stream is not a file, i.e. a Process or a Socket, then it returns the number of bytes that can be read at once.

PUBLIC SUB Process_Read()

  DIM sBuffer AS String

  PRINT "I can read "; Lof(hLAST)
  ' Read them
  READ #hLAST, sBuffer, Lof(hLAST)

END

See also

Stream & Input/Output functions, Process