. ... -
1.9, , , POS.
,
c = CSV.open iFileName
logger.debug c.first
logger.debug c.first
logger.debug c.first
In your journal you will get three different results. One for each of the three header lines.
c.each do |row|# now it seems to start on the 4th line.
It makes sense that he will read the file this way. Then he should have only the current line in memory.
I still like the answer Mladen Yablanovich, but this is also interesting logic.
source
share