So, I'm dealing with integrating a legacy system. It produces a large text file, that prints instructions in one large string. Really large string. We're talking 450 000 characters or more.
I need to break this up in to lines, one per instruction. Each instruction is separated by a five digit code, where the code contains the number of characters in the next instruction.
My solution is writing a small java program that uses a buffered reader to read the file into a string, which is subsequently split into lines, and saved to a new file.
Any advice on handling this? Will a buffered reader be able to read this into a regular string? Am i doing this wrong?