I need to access individual lines in a CSV file with around 42,000 lines in ruby.
I'm aware of 'Foreach()' however, this is still too slow, and I need something that doesn't load the entire CSV to memory (I think this is what is slowing it down).
I was using Python and 'linecache.getline()' worked well, is there something similar in ruby? Thanks!