Lof
Length = Lof ( Stream AS Stream ) AS Long
返回打开的
Stream 流的长度。
示例
OPEN sFileName FOR READ AS #hFile
...
PRINT "文件长度为"; Lof(hFile)
如果Stream流不是文件,而是进程(
Process)或者套接字(
Socket),那么返回当前能读取的字节数。
PUBLIC SUB Process_Read()
DIM sBuffer AS String
PRINT "可以读"; Lof(hLAST)
' 读取
READ #hLAST, sBuffer, Lof(hLAST)
END
参见