Last active
August 11, 2017 14:53
-
-
Save pvgomes/c6bf858f16362d29c8711a0d447661fd to your computer and use it in GitHub Desktop.
RubyReadFile.rb
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
keys = File.readlines('keys.txt'); | |
keys.each do |key| | |
puts key | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want remove the line breaks you can use
puts key.chomp