in reply to
Re: combine multiple files into one (line by line)
in thread combine multiple files into one (line by line)
Thank you for your help, however I failed to mention that the files range in size from 55MB to 130MB. In addition, I only want to grab the first 2,000 or so lines from each file and distribute them in the abovementioned fashion.
For these reasons I don't think that using arrays is feasible. I understand that opening and closing is expensive, but hopefully less so than using huge arrays.
Thanks for your help,
p.s. thabenksta's code works, but yours does not.