元江第四小学:vb中用fso修改文本内容

来源:百度文库 编辑:高考问答 时间:2024/05/05 14:17:53
有一个文本文件的路径是d:\123.txt内容是"123456"现在要让他改成"12310456",这个用fso怎么实现啊..
新建覆盖原来的..就免了..

新建一个然后覆掉原来的
set ts=fso.opentextfile(filename,forwriting,true)
ts.write "12310456"
ts.close
set ts=nothing