我想知道如何使用VB6删除文本文件中的所有内容,而无需添加对任何对象库的引用.不幸的是,我所知道的是如何打开它:
Open App.Path & "/media/text.txt" For Input As #1
Run Code Online (Sandbox Code Playgroud)
谢谢.
ren*_*ene 10
Dim intFile As Integer
intFile = FreeFile
Open App.Path & "/media/text.txt" For Output As #intFile
Close #intFile
Run Code Online (Sandbox Code Playgroud)
用它作为quickref
| 归档时间: |
|
| 查看次数: |
3477 次 |
| 最近记录: |