示例#1
0
        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;
            }
        }
示例#2
0
        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;
            }
        }