in reply to Re: How can I read multiple lines starting with the same number and put in to a nested array and print it to a file?
in thread How can I read multiple lines starting with the same number and put in to a nested array and print it to a file?
Unfortunately I do not know what the starting line numbers are. I have 3 GB file
and I can not put it into a big array. The example above is extremely simplified example.
I might have element 10 (which is first number in the line) and 20 lines starting with that number ,
The next number might be 10000 and I might have 20 lines starting with that number. I might have 20000 elements, which
means 20000 different elements and 20000 * 20 lines (lets say there are 20 lines starting with the same element number).
Basically I just would not know what the element numbers are. I need to find out as I am going through the file.