Created
November 20, 2019 17:19
-
-
Save ykws/d2695671639047f5aabdddbe6f6408fc to your computer and use it in GitHub Desktop.
Access to a file with Ruby Blocks
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(ARGV[0], 'r') {|file| puts file.read} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment