CSV Documentation

Jesse Phillips jessekphillips+d at gmail.com
Thu Aug 11 07:19:56 PDT 2011


On Thu, 11 Aug 2011 10:07:05 +0200, Jonas Drewsen wrote:

> I know you didn't ask for added functionality requests but cannot resist
> this suggestion for a future improvement. Add the possibility to accept
> LineRanges as input. Then you can do the following:
> 
> auto recs = csvText!MyRecord( curl.getAsync("http://...").ByLine() );
> 
> This way you could handle large csv files because the entire file does
> not have to be loaded to memory but just a line at a time.
> 
> /Jonas

Line parsing of CSV is very difficult. However this module works off an 
Input Range of characters, so as long as it can continuously get a 
character, which a wrapper around a byLine range could do you don't need 
the whole file in memory.

I should mention Input Range and probably add a constraint.


More information about the Digitalmars-d mailing list