Ruby Open File и добавление
File.open("foo.txt", "a") { |f| f << "foo" }
MunnaBhaiyya
File.open("foo.txt", "a") { |f| f << "foo" }