2014-12-30 ファイルを作成する Ruby //w: 書き込みモードで新規に作成 file = open("hoge.txt", "w:UTF-8") file = File.open("hoge.txt", "w:UTF-8") //w+: 書き込み読み込み両用モードで新規に作成 file = open("hoge.txt", "w+:UTF-8") file = File.open("hoge.txt", "w+:UTF-8")