I have an array that consists of the lines of a file and wish to insert lines at a specified point.
The lines come from another file which is being processed (a line at a time) until a certain string is reached, at which point I'm finished with that file.
Should I read the lines I'm keeping from file 2 into another array? How do I merge the two arrays?
Thanks.
The lines come from another file which is being processed (a line at a time) until a certain string is reached, at which point I'm finished with that file.
Should I read the lines I'm keeping from file 2 into another array? How do I merge the two arrays?
Thanks.
Comment