Have a file that is one long continuous record (no CRLF) and may have 1 to 10,000+ strings of 333 characters each (it is a type of error DUMP file). I need to create a file that reads this DUMP file in & writes out certain sections of each string group. I have a code segment that works if the DUMP file is very small, but because it inputs the dump file as a string, it hits OVERFLOW if the file has any size to it at all. (the program also displays to a text box)
Here is the code segment>

Open "c:\dumpfile" for Input As #1
Input #1, strfiledata
iLength = Len(strfiledata)
iSectionCount = iLength / 333
iStartPosition = 1
Close #1
Open "c:\TCDataOut.txt" For Output As #2

For iLoopVar = 1 To iSectionCount
Text1.Text = Text1.Text & vbCrLf & Mid$(strfiledata, iStartPosition + 11, 15) & " " & Mid$(strfiledata, iStartPosition + 29, 12) & " " & Mid$(strfiledata, iStartPosition + 190, 12)
iStartPosition = iStartPosition + 333
Next iLoopVar
Print #2, Text1.Text

Hope this makes some sense. I'll bet there is a MUCH easier way to do this.

Thanks 4 helping (& for reading all the way to the bottom)