Vb6 Visual Basic 6清除文本文件中的内容,而不引用library6

Vb6 Visual Basic 6清除文本文件中的内容,而不引用library6,vb6,Vb6,我想知道如何使用VB6删除文本文件中的所有内容,而不需要添加对任何对象库的引用。 不幸的是,我只知道如何打开它: Open App.Path & "/media/text.txt" For Input As #1 多谢各位 Dim intFile As Integer intFile = FreeFile Open App.Path & "/media/text.txt" For Output As #intFile Close #intFile 用作快速参考

我想知道如何使用VB6删除文本文件中的所有内容,而不需要添加对任何对象库的引用。 不幸的是,我只知道如何打开它:

Open App.Path & "/media/text.txt" For Input As #1
多谢各位

Dim intFile As Integer

intFile = FreeFile

Open App.Path & "/media/text.txt" For Output As #intFile
Close #intFile
用作快速参考