On 2014-03-16 10:31 PM, Etienne Cimon wrote:
auto ln = f.split("\n", 15); // returns a gc allocated array of 15 lines
Moving it to a template and rethinking the naming auto lines = f.splitLn!15; // returns 15 lines auto lines = f.split!";" // splits the file using ; sep auto lines = f.splitLnI consider this to be an essential part of file reading, not necessarily line separation but moving the file pointer forward a number of elements with a choice of characters.
