Hi,
When I'm trying to read the contents of a textfile when opening a form it clears the content. Anyone knows what could be the problem?
When I'm trying to read the contents of a textfile when opening a form it clears the content. Anyone knows what could be the problem?
Code:
Private Sub Form_Load()
Dim TempStr as String
Open "C:\text.txt" For Output as #1
Line Input #1, TempStr
Label1.Caption = TempStr
Close #1
End Sub