public FileIOStream(FileIOSystem parent, String pathToFile, FileIOMode fileMode) : base(pathToFile, fileMode) { _parent = parent; switch (fileMode) { case FileIOMode.Read: case FileIOMode.ReadBinary: case FileIOMode.ReadText: OpenRead(pathToFile, fileMode); break; case FileIOMode.Write: case FileIOMode.WriteBinary: case FileIOMode.WriteText: OpenWrite(pathToFile, fileMode); break; } }
public FileIOStream(FileIOSystem parent, String pathToFile, FileIOMode fileMode) : base(pathToFile, fileMode) { m_parent = parent; switch(fileMode) { case FileIOMode.Read: case FileIOMode.ReadBinary: case FileIOMode.ReadText: OpenRead(pathToFile, fileMode); break; case FileIOMode.Write: case FileIOMode.WriteBinary: case FileIOMode.WriteText: OpenWrite(pathToFile, fileMode); break; } }