- 注册时间
- 2011-3-6
- 最后登录
- 1970-1-1
该用户从未签到
|
发表于 2014-7-10 09:23:17
|
显示全部楼层
读
Private Sub Command1_Click()
Open "d:\1.txt" For Input As #1
Dim Lines As String
Dim NextLine As String
Dim i As Integer
Do While Not EOF(1)
On Error Resume Next
Line Input #1, NextLine
Lines = Lines & NextLine & Chr(13) & Chr(10)
Loop
Close #1
Text1.Text = Lines
End Sub
写
Private Sub Command2_Click()
Open "d:\1.txt" For Output As #1
Print #1, Text1.Text
Close #1
End Sub |
|