public void Dispose() { if (br_ != null) { br_.Dispose(); br_ = null; } }
/// <summary> /// Reads the file. /// </summary> /// <param name="fileName">Path of the file to read.</param> /// <param name="maxRecords">The max number of records to read. Int32.MaxValue or -1 to read all records.</param> /// <returns>T[].</returns> public override T[] ReadFile(string fileName, int maxRecords) { using (var fs = new InternalStreamReader(fileName, Encoding, true, DefaultReadBufferSize)) { var tempRes = ReadStream(fs, maxRecords); fs.Close(); return(tempRes); } }
public ExaStreamReader(Encoding encoding, int bufferSize = 655360) { br_ = new InternalStreamReader(encoding, bufferSize); }