auto lines = new Lines!(char);
void somefunc (InputStream stream)
{
foreach (line; lines.set(stream))
Cout (line).newline;
}
void somefunc (InputStream stream)
{
foreach (line; new Lines!(char) (stream))
Cout (line).newline;
}
Construct a streaming iterator upon a conduit:
foreach (line; new Lines!(char) (new File ("myfile")))
Cout (line).newline;