×

VB6读写系统临时目录 temp

hqy hqy 发表于2025-02-21 16:12:51 浏览6 评论0

抢沙发发表评论

窗口一个按钮,一个文本,简洁代码短少

Private Sub Command1_Click()

Dim s As String, S1 As String

s = Environ("temp")

'这里是写入

Open s & "\abc.txt" For Output As #1

Print #1, Text1

Close #1

'这里是读入

Open s & "\abc.txt" For Input As #1

Input #1, S1

Close #1

MsgBox S1

End Sub


打赏

本文链接:https://www.kinber.cn/post/4928.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

 您阅读本篇文章共花了: 

群贤毕至

访客