Skip to content

Instantly share code, notes, and snippets.

@tomoyamkung
Created July 9, 2012 07:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoyamkung/3074753 to your computer and use it in GitHub Desktop.
Save tomoyamkung/3074753 to your computer and use it in GitHub Desktop.
Ruby でファイルを1行ずつ読み込んで出力するコードスニペット
File.open(FILE_PATH){|f|
f.each_line do |line|
puts(line)
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment