How to write to the YAML file?

question
package

#1

I have yaml file conf.yaml and now I want to rerwrite/change value of key. I used the YAML.jl package but emitting julia objects to YAML not yet implemented. I have about 300 files with some different keys.

Any idea? Thanks.


#2

You could write a rough yaml writer if you can get it correct enough for your needs. If you’re running the code on systems where ruby is easily accessible, I’ve found it’s quite good at this since its equivalent of dicts have a to_yaml method. Guess no one has written the same thing for the Julia yaml package yet.