读取文件:
Open Path For Input As #1
Line Input #1, s '读取一行 忽略换行符
Close #1
写入文件:
Open Path For Output As #1
Print #1, s '写入一行 自动添加换行符
Close #1
'path 就是文件 的路径
在 open 与 close 之间 你可以添加多选 操作代码 Line Input / Print 一次一行
读取后 你可以 用 函数 Split 来分割数据
dim s() as string
s=Split("123,567,789",",")
运行后 s就会成为 s(0)="123" s(1)="567" s(2)="789"
以上信息 就可以完成了你的功能
温馨提示:答案为网友推荐,仅供参考