Bluestar88
Member level 3
Hi guys, I used the code below..The code seems to be correct but it doesn't work, in another word it doesn't enter to the loop..please help me...
Code:
Private Sub Command2_Click()
Dim AllText, OneLine As String
FileName = App.Path & "\" & Text1.Text & ".txt"
MousePointer = 11
Open FileName For Output As #1
Form1.Text2.Text = ""
AllText = ""
Do While Not EOF(1)
Line Input #1, OneLine
AllText = AllText & OneLine '& Chr(13) & Chr(10)
Loop
Form1.Text2.Text = AllText
Close #1
MousePointer = 0
End Sub