Skip to content

Instantly share code, notes, and snippets.

@AnonymousWS
Created June 16, 2015 17:40
Show Gist options
  • Save AnonymousWS/7d6d34535ff95ff97161 to your computer and use it in GitHub Desktop.
Save AnonymousWS/7d6d34535ff95ff97161 to your computer and use it in GitHub Desktop.
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