VB保存/写入/储存TXT/文本文件:

Open FileName For Input As #405 ‘打开文件写时候是全部覆盖重新写
‘Open FileName For append As #405 ‘打开文件时从结尾部分接着写
Open “x.txt” For Output As #8
Print #8, “Hello,World!”
Close #8

本文来自: 雪域博客