1
0
Fork 0
lrthw/exercises/ex15/ex15.rb

17 lines
242 B
Ruby

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
txt.close
txt_again.close