tango.io.FileConduit-readlines one at a time

Tower Ty tytower at hotmail.com.au
Sun Mar 23 23:47:58 PDT 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);


More information about the Digitalmars-d-learn mailing list