read and write to file
Merge https://github.com/KiwiPlus/Rubypractice