In order to implement a series of calls to fetch a number of random lines from a CSV it would be good to know the total number of lines of the file so that the lines can be randomly chosen from the range. To do that it would help if RAMCSV exposes its attributes so that we do not need to write extra logic just to find the number of lines in the file.
Attached is a patch. I am not sure if you are actively taking PRs so please let me know if you agree and I can create a PR.
patch-randomaccesscsv.txt
In order to implement a series of calls to fetch a number of random lines from a CSV it would be good to know the total number of lines of the file so that the lines can be randomly chosen from the range. To do that it would help if RAMCSV exposes its attributes so that we do not need to write extra logic just to find the number of lines in the file.
Attached is a patch. I am not sure if you are actively taking PRs so please let me know if you agree and I can create a PR.
patch-randomaccesscsv.txt