vb6.0怎样删除txt文档的内容?

如题所述

用output打开文件,然后向里面写入一个空字符串就可以了。
Kill "c:\Test.txt"
OPEN "c:\Test.TXT" for output as #1
print #1,""
close #1
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-10-13
Kill "c:\Test.txt"
OPEN "c:\Test.TXT" for output as #1
print #1,""
close #1
相似回答