2017-11-21から1日間の記事一覧
# 書き込み File.open("yamazon.txt", "w") {|file| file.puts "hello";file.puts "a"} # 書き込み 追記 File.open("yamazon.txt", "a") {|file| file.puts "h i j k";file.puts "a hello"} # ファイルオープン 改行区切りで読み込み表示 File.open("./yamaz…
# 書き込み File.open("yamazon.txt", "w") {|file| file.puts "hello";file.puts "a"} # 書き込み 追記 File.open("yamazon.txt", "a") {|file| file.puts "h i j k";file.puts "a hello"} # ファイルオープン 改行区切りで読み込み表示 File.open("./yamaz…