Created
June 20, 2014 07:06
-
-
Save peroon/72463676ac94175b6259 to your computer and use it in GitHub Desktop.
ファイルを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
open( "./text.txt" ) {|f| | |
f.each {|s| | |
puts s | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment