From: Matthew Moss Date: 2008-12-11T12:40:20+09:00 Subject: Re: copy txt file - only copies 1/3 of the file - what happened? On Dec 10, 2008, at 9:37 PM, Mmcolli00 Mom wrote: > File.open('oldFile.txt', 'r') do |f1| #file contains XML type data > m = f1.gets > File.open('newFile.txt','w') do |f2| #newFile to separate data in > oldFile > f2.puts m.split("<") > end > end Perhaps replace line 2 with: m = f1.read ?