readByte()
ファイルから単バイト返します。
文法:
readByte(
stream
)
stream
は以前に
open
コマンドで開かれたファイルです。
用例:
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()
コマンドを参照してください。