The program below reads a line at once. I need to use the entire string in
the text file. How to do this ?
Code: Select all
Open Myfileinput For Input As #1
If Err>0 Then
Print "Error accessing file"
Sleep
Else
Open Myfileoutput For Output As #2
text=""
While Not Eof(1)
Line Input #1,T
text=text+T+Chr(10)
Wend
Print #2, text
Close 1
Close 2