 |
使用Output方式打开文件,然后写内容,则原有的内容就自动被删除了。如:
Private Sub Command1_Click()
Open "f:\a.txt" For Output As 1
Write #1, 0
Close 1
End Sub
相关问题:
QA000200 "如何快速剪短文件"
此问题由李海回答。
附加关键字:编程, 源程序, programming, source code, Visual Basic, VB, 磁盘、文件和目录, disk, file, fat, directory, folder。
|