Hi guys,
Is it possible to write on existing yaml file using ruby programming?
This is because i need to transfer some contents on my .csv file into an
existing yaml which already being used for other purposes. Thank you
Kind Regards,
Nizam
Hi guys,
Is it possible to write on existing yaml file using ruby programming?
This is because i need to transfer some contents on my .csv file into an
existing yaml which already being used for other purposes. Thank you
Kind Regards,
Nizam
On Mon, Jan 17, 2011 at 12:28 AM, Kamarulnizam R.
[email protected] wrote:
Hi guys,
Is it possible to write on existing yaml file using ruby programming?
Yes. Open it in append mode:
File.open myfile, “a+” do
end
See class IO - RDoc Documentation for a list of modes
File supports.
–
Phillip G.
Though the folk I have met,
(Ah, how soon!) they forget
When I’ve moved on to some other place,
There may be one or two,
When I’ve played and passed through,
Who’ll remember my song or my face.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs