Hi, Please help!!!!
I am trying to read in the original file with a big chunk of data (& a carriage return at the end of the last line) and write to the second file with carriage return at the end of each line. However, I am getting this Error 62, Input past the end of file.
My question is how can get rid of this error? Thank you so much for anyone's help!!!
Here is part of my code:
Open strUnparsedFilePath For Input As #1
strOutputFile = (PROCESSEDDIR & "\" & strUnparsedFileTrim & ".dat"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Open strOutputFile For Output As #2
Do While Not EOF(1)
readin133$ = Input$(133, #1)
'Print out parsed data with a carriage return
Print #2, readin133$
Loop
Close #1
Close #2
Kill (sNew)
I am trying to read in the original file with a big chunk of data (& a carriage return at the end of the last line) and write to the second file with carriage return at the end of each line. However, I am getting this Error 62, Input past the end of file.
My question is how can get rid of this error? Thank you so much for anyone's help!!!
Here is part of my code:
Open strUnparsedFilePath For Input As #1
strOutputFile = (PROCESSEDDIR & "\" & strUnparsedFileTrim & ".dat"
Open strOutputFile For Output As #2
Do While Not EOF(1)
readin133$ = Input$(133, #1)
'Print out parsed data with a carriage return
Print #2, readin133$
Loop
Close #1
Close #2
Kill (sNew)