请输入您要查询的百科知识:

 

词条 简单读取TXT文件
释义

Private Sub Command1_Click()

Open "c:\\21.txt" For Append As #1

Print #1, Text1.Text

Close #1

End Sub

Private Sub Command2_Click()

Dim Lstr As String

Text1.Tag = "open"

Open "c:\\21.txt" For Input As #1

Do While Not EOF(1)

Line Input #1, Lstr

Text1.Text = Text1.Text + vbCrLf + Lstr

Loop

Close #1

End Sub

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/4 11:43:57