RosettaCodeData/Task/Synchronous-concurrency/Ruby/synchronous-concurrency-1.rb
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

3 lines
99 B
Ruby

count = 0
IO.foreach("input.txt") { |line| print line; count += 1 }
puts "Printed #{count} lines."