I've changed my approach as i dont actually want to count the lines

so i now have this:

 ARGV.each do |fn|
    begin
      (fn == 'reference.txt' ? STDIN :  File.open(fn)).each_line do |l|
  puts l
     end

by this im trying to read in the text file and print out its contents

i seem to be getting a load error
any reason why?

thank you
-- 
Posted via http://www.ruby-forum.com/.