gpt4 book ai didi

vb6 - Visual Basic 6 清除文本文件中的内容而不引用库6

转载 作者:行者123 更新时间:2023-12-02 06:20:12 25 4
gpt4 key购买 nike

我想知道如何使用 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

二手 this作为快速引用

关于vb6 - Visual Basic 6 清除文本文件中的内容而不引用库6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12201206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com