readByte()
ファイルから1バイト読み込む。
書式:
readByte(
stream
)
stream
オープンコマンド
で指定された番号
例:
open "myfile.txt" for input as 1
while eof(1)=0
a=
readbyte(
1
)
prints(str$(a)+" "+chr$(a))
end while
close 1
waitKey
参照:
writeByte()