public void PrepareWrite( int recordCount, int inputSize, int idealSize) { try { _inputCount = inputSize; _idealCount = idealSize; _output = new StreamWriter(new FileStream(_file, FileMode.Create)); } catch (IOException ex) { throw new BufferedDataError(ex); } }