Namal via Digitalmars-d-learn Fri, 14 Jul 2017 08:11:05 -0700
string[] buffer;
foreach (line ; File("test.txt").byLine) buffer ~= line.to!string;