On Fri, 11 May 2012 11:00:16 -0400, Paul <[email protected]> wrote:

I would like to read a complete file in one statement and then process it line by line.

foreach (line; MyFile)
etc.

Is it possible to read a file into and array of lines?
Thanks

Would something like this work?

auto arr = array(map!"a.idup"(File("file.txt").byLine()));

-Steve

Reply via email to