Put 语句
将一个变量的数据写入磁盘文件中。
Put [#]filenumber,[recnumber],varname
Get 语句
将一个已打开的磁盘文件读入一个变量之中。
Get [#]filenumber,varname
例如:
dim B as byte
open "File1.txt" for binary as #1
get #1,1,B
close #1
即可将File1.txt文件的第一个字节读入变量B
Dim S as string
S = "ABCDE"
open "File2.txt" for binary as #1
put #1,S
close #1
即可将变量S的内容写入File2.txt中。
原文链接:https://www.f2er.com/vb/262507.html