Created
July 5, 2018 09:42
-
-
Save GBardis/4779d9c5999e6f2089eb1f8480fdea9e to your computer and use it in GitHub Desktop.
file_read
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.foreach('public/sample.txt') do |line| | |
line.split("\n").first.split(',') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment