Hi All,
Sorry about the lame title.
I have a project I'm working on and I would appreciate any suggestions as to how I should go about doing the IO stuff.
Ok, I have 3 text files. One file contains many many lines of text. This is the same for the other 2 files. Let's call them File1, File2 and File3.
I need to create a text file, for the sake of explaining, I'll name it Result.txt.
Here's what needs to be done:
- Extract the first line of text from File1 and append it to Result.txt.
Extract the first line of text from File2 and append it to the end of the first line in Result.txt.
Extract the first line of text from File3 and append it to the end of the first line in Result.txt.
Create a new line in Result.txt
Repeat from 1 to 4.
Note: These files can be quite large.
Anyone have any ideas as to how to best approach this?
Thank you
-
Thank you all for your very helpful answers. I've learned alot from your advice and code samples!