Commit 11c21369 by Đường Sỹ Hoàng

Reading files

parent eda53deb
Pipeline #109 failed with stages
in 0 seconds
This is stuff I typed into a file.
It is really cool stuff.
Lots and lots of fun to have in here.
\ No newline at end of file
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
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment