Hi All, i am using this code to achieve the results i need to read from one file and then save it to another. This works for me until i save it to the file. What happens is the code works but every once and while instead of reading just one line it will read two lines, it will process the first line and then put the other line right after the first line without porcessing it.
i think the problem is that the file i am reading is to big (70 pages of text) but i am not having any luck as to getting anything else to work.
HElp required.......
Open getfile For Input As #1
Open "c:\Atextout.txt" For Output Shared As #2
Do Until EOF(1)
Line Input #1, InputString
OutputLine = Mid(InputString, 3, 12)
OutputLine = OutputLine & Space(3)
OutputLine1 = OutputLine & Mid(InputString, 14, 10)
OutputLine2 = OutputLine1 & Space(3)
OutputLine3 = OutputLine2 & Mid(InputString, 23)
Print #2, OutputLine3, Tab(1)
Loop
Close #2
Close #1
i think the problem is that the file i am reading is to big (70 pages of text) but i am not having any luck as to getting anything else to work.
HElp required.......
Open getfile For Input As #1
Open "c:\Atextout.txt" For Output Shared As #2
Do Until EOF(1)
Line Input #1, InputString
OutputLine = Mid(InputString, 3, 12)
OutputLine = OutputLine & Space(3)
OutputLine1 = OutputLine & Mid(InputString, 14, 10)
OutputLine2 = OutputLine1 & Space(3)
OutputLine3 = OutputLine2 & Mid(InputString, 23)
Print #2, OutputLine3, Tab(1)
Loop
Close #2
Close #1