git-subtree-dir: lrthw-remnants git-subtree-mainline: f2380eef05b9edf061bd3716c7f3e546ec32954d git-subtree-split: 2b0a814a1795c60baf29b95462921b0ec8c7d861
16 lines
264 B
Ruby
16 lines
264 B
Ruby
filename = ARGV.first
|
|
|
|
prompt = "> "
|
|
txt = File.open(filename)
|
|
|
|
puts "Here's your file: #{filename}"
|
|
puts txt.read()
|
|
|
|
puts "I'll also ask you to type it again:"
|
|
print prompt
|
|
file_again = STDIN.gets.chomp()
|
|
|
|
txt_again = File.open(file_again)
|
|
|
|
puts txt_again.read()
|