ARGF.gets : ARGF « Development « Ruby






ARGF.gets



#!/usr/bin/env ruby

while line = ARGF.gets
 puts line
end

 








Related examples in the same category

1.ARGV and ARGF
2.ARGF ($<) is a virtual concatenation of all the files that appear on the command line.