第1个回答 2011-03-29
Private Sub Command1_Click() '读
Text1.Text = ""
Open "test.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, temp
Text1.Text = Text1.Text & temp & vbCrLf
Loop
Close #1
End Sub
Private Sub Command2_Click() '写
Open "test.txt" For Output As #1
Print #1, Text1.Text
Close #1
End Sub