From: "Bartosz DziewoƄski" Date: 2012-07-07T01:17:29+09:00 Subject: Re: Parsing a zip file for rows of string data Well, you're almost done? To open a file for writing, you can use f = File.open('filename.txt', 'w'). ('w' means that any data in the file will be erased first. To open it in append-mode, use 'a' instead. To open for reading, use 'r'.) To write data to it, use f.write data; in your case, f.write line. To close the file when you're done writing, use f.close. That's it - just open the two files at the beginning of your code, write to them in the loop, and close them at the end. -- Matma Rex