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
There is something that I did that was weird here. I say this because
when I open the new file that it creates its 1/3 the size of the
original. It seems to just completely cut off. I took off the .split and
it still did this, so I know it has nothing to do with split. What do
you think is going on?
contains XML formatted data.
is supposed to break each line up what starts with < giving a new line
per element for later use.