Created
April 8, 2015 09:02
-
-
Save anonymous/12614109e70660746bf1 to your computer and use it in GitHub Desktop.
open file
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
filename = ARGV.first | |
txt = open(filename) | |
puts "Here's your file #{filename}:" | |
print txt.read | |
print "Type the filename again: " | |
file_again = $stdin.gets.chomp | |
txt_again = open(file_again) | |
print txt_again.read |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment