-
-
Save AnonymousWS/7d6d34535ff95ff97161 to your computer and use it in GitHub Desktop.
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