Writing on yaml file?

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

stuff

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.