ARGF ($<) is a virtual concatenation of all the files that appear on the command line. : ARGF « Development « Ruby






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


while line = ARGF.gets
 print line
end

 








Related examples in the same category

1.ARGV and ARGF
2.ARGF.gets