loc()
ファイルの読み込み/書き込みポジションを返す。
書式:
loc( stream
)
stream
オープンコマンドで指定された番号
Example:
open "myfile.txt" for input as 1
while eof(1)=0
position = loc( 1
)
fprints("loc:"+str$(position)+" - ")
file input #1,a$
prints(a$)
end while
close 1
waitKey
参照: seek()