Created
July 9, 2012 07:13
-
-
Save tomoyamkung/3074753 to your computer and use it in GitHub Desktop.
Ruby でファイルを1行ずつ読み込んで出力するコードスニペット
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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