Closed ph closed 9 years ago
For smallish files I usually prefer
File.readlines("path").each do |line|
process(line)
end
since it closes the file by itself, but otherwise LGTM
@jordansissel can you merge this and release a new gem? I have already bumped the version in the gemspec.
Close the file after reading the patterns.