Tag Archives: csv


DLANG : read a CSV file with the standard CSV library (std.csv)

The D language (DLANG) provides a standard library to read CSV files. Unfortunately, the documentation does not show any examples which reads a file. Instead, the documentation shows how to use the CSV library from a string. It’s not very useful since we always read CSV format from files rather than string variables …

Anyway, since there are very few examples of DLANG (D language) code on Internet, I am going to explain how I managed to read properly a CSV file with the std.csv lib and stock line values into an associative array.

Continue reading