Reading a csv file

Jesse Phillips jessekphillips+D at gmail.com
Thu Aug 9 18:44:11 PDT 2012


On Friday, 10 August 2012 at 01:39:32 UTC, Andrew wrote:
> I'm trying to read in a csv file. The examples in the docs for 
> std.csv
> all assume you're reading from a string rather than a file.

It requires a range of dchar. I believe there is an undocumented 
function to get a dchar range out of a File, but as it is 
undocumented...

std.file.readText() will be your friend.



More information about the Digitalmars-d-learn mailing list