Method: L5MTools::Application#read_files

Defined in:
lib/l5m-tools/application.rb

#read_files(csvfile) ⇒ Object



31
32
33
34
35
36
37
38
39
40
# File 'lib/l5m-tools/application.rb', line 31

def read_files(csvfile)
    File.open(csvfile, "r") do |infile|
        while (line = infile.gets)
            line = line.chomp.strip
            if line.length > 0 && line[0] != '#'
                yield line if block_given?
            end
        end
    end
end