Encog.ML.Data.Buffer.CODEC.CSVDataCODEC.PrepareWrite C# (CSharp) Method

PrepareWrite() public method

Prepare to write to a CSV file.
public PrepareWrite ( int recordCount, int inputSize, int idealSize ) : void
recordCount int The total record count, that will be written.
inputSize int The input size.
idealSize int The ideal size.
return void
        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);
            }
        }