Private Sub Command1_Click()
Text1.Text = ""
On Error GoTo fine
Open App.Path & "\testo.txt" For Input As 1
Do
Input #1, linea
Text1.Text = Text1 & linea & vbCrLf
Loop Until EOF(1) = True
Close #1
Exit Sub
fine:
Close #1
MsgBox Err.Description
End Sub
Private Sub Command2_Click()
On Error GoTo fine
Open App.Path & "\testo.txt" For Output As #1
Print #1, Text1.Text
Close #1
Exit Sub
fine:
Close #1
MsgBox Err.Description
End Sub
Visitano il forum: Nessuno e 1 ospite