contents = File.readlines(path) file = Buffer.new(path,contents) putsbuffer file