I have this code:
File.open(“MIO.TA.1234567.#{Time.now.strftime(“%F”)}.{Time.now.strftime
(“%T”)}.xml”, “w”) { |file| file.write(xml) }
The only requirement is to be able to save to MIO.TA.1234567.20180309.090000.xml instead of having to have output.xml existing and me having to open to write.