Jacob Yocom-Piatt wrote:
> an alternative to this procedure would be to scan through the CSV file to
> determine how many array entries i would need, realloc it all at once, then go
> back through the CSV file again to read the data into the array.

Try starting with a reasonable number of lines, e.g. the average number
of lines in most of your csv files, and doubling the buffer each time
you fill it up.

Reply via email to