parent
675664b042
commit
54d0f0ca26
@ -0,0 +1,15 @@
|
|||||||
|
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()
|
@ -0,0 +1,3 @@
|
|||||||
|
This is stuff I typed into a file.
|
||||||
|
It is really cool stuff.
|
||||||
|
Lots and lots of fun to have in here.
|
Loading…
Reference in new issue