public void Open(string filepath) { filepathValidator.ValidateAndThrow(filepath, checkIfExists: true); Close(); FilePath = filepath; fileStream = new FileStream(FilePath, FileMode.Open); Reset(); }
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); }