衡阳机场到衡阳东站:vb连接txt

来源:百度文库 编辑:中科新闻网 时间:2024/05/14 13:33:36
vb打开*.txt文件读写*.txt的语句,给我写个样板。快点!

Open "D:\xxx.txt for append As #1
Print #1,"1234"
Print #1,"ABCD"
Close #1
append 是以追加的方式操作的 还可以换成input,output等等 比如
Open "D:\xxx.txt for input As #1
do while not eof(1)
input #1,a
...
loop
Close #1