Hey guys, probably a simple question but my google-fu is failing me and does not seem to be posted on SO yet...
I basically have a file I am accessing and before I append to it I want to delete the last line from the file. Is there any efficient way of doing this in Ruby?
This is what I am using to access the file:
file = File.new("imcs2.xml", "a")