March 24, 2008
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
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