public void Open(string filepath)
        {
            filepathValidator.ValidateAndThrow(filepath, checkIfExists: true);

            Close();

            FilePath   = filepath;
            fileStream = new FileStream(FilePath, FileMode.Open);
            Reset();
        }
Ejemplo n.º 2
0
        public void Open(string filepath)
        {
            filepathValidator.ValidateAndThrow(filepath, checkIfExists: false);

            //buffer.OnCurrentBitReset = null;
            // TODO: Investigate reinitializing alternative
            buffer = new Buffer();
            buffer.OnCurrentBitReset += OnCurrentBitReset;

            FilePath   = filepath;
            fileStream = new FileStream(filepath, FileMode.OpenOrCreate);
        }