March 24, 2008 tango.io.FileConduit-readlines one at a time | ||||
|---|---|---|---|---|
| ||||
The comments on Conduit are as below but can I read a line at a time?
// open file for reading
auto fc = new FileConduit ("test.txt");
// create an array to house the entire file
auto content = new char[fc.length];
// read the file content. Return value is the number of bytes read
auto bytesRead = fc.input.read (content);
| ||||
March 24, 2008 Re: tango.io.FileConduit-readlines one at a time | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Tower Ty | Tower Ty a écrit : > The comments on Conduit are as below but can I read a line at a time? Take a look at LineStream. http://www.dsource.org/projects/tango/docs/current/tango.io.stream.LineStream.html | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply