Keep track of and return actual line number position in file
Brought to you by:
aruckerjones,
sconway
For user feedback it would be great to determine the actual line number where the CSVReader is currently positioned (e.g. during logging/reporting). Due to multi line reads, this number might differ from the number of calls to readNext().
Solution would be to count the lines in the LineReader class.
Good suggestion - I put that on our todo list in the wiki. It will not be in the next release but hopefully the release after that.
Added two new methods to CSVReader - getLinesRead which returns the number of lines read (which is what you requested) and getRecordsRead which returns the number of actual records (Array of Strings) returned by CSVReader.
These have been merged into trunk and will be in the 3.6 release.