From: Joel VanderWerf Date: 2007-08-27T06:05:18+09:00 Subject: Re: [SOLUTION][QUIZ] ID3 Tags (#136) Johannes Held wrote: > What the heck is ARGF? It's a pseudo-IO that reads the concatenation of the files named in ARGV, unless ARGV is empty, in which case it just reads standard input. It's very useful in writing little command-line programs that can be used as filters or on a list of named files (after you delete any switches or options from the command line). [~] cat >foo.txt foo [~] cat >bar.txt bar [~] ruby -e 'puts ARGF.read' foo.txt bar.txt foo bar [~] echo zap | ruby -e 'puts ARGF.read' zap -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407