# How to write to the YAML file?

**URL:** <https://discourse.julialang.org/t/how-to-write-to-the-yaml-file/4540>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [June 29, 2017, 11:54am UTC](https://discourse.julialang.org/t/how-to-write-to-the-yaml-file/4540 "2017-06-29T11:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Florek](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Martin\_Florek](https://discourse.julialang.org/u/Martin_Florek)\
**Post date:** [June 29, 2017, 11:54am UTC](https://discourse.julialang.org/t/how-to-write-to-the-yaml-file/4540/1 "2017-06-29T11:54:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [June 29, 2017, 12:30pm UTC](https://discourse.julialang.org/t/how-to-write-to-the-yaml-file/4540/2 "2017-06-29T12:30:21Z")

</div>

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.
