Пример #1
0
        /// <summary>
        /// Opens the file for writing. First closes the file since it has already been opened for reading
        /// </summary>
        protected void InitializeForWriting()
        {
            Dispose(false);
            DfsDLLWrapper.dfsFileEdit(_filename, out _headerPointer, out _filePointer);
            _initializedForWriting = true;

            for (int i = 0; i < NumberOfItems; i++)
            {
                var ip = DfsDLLWrapper.dfsItemD(_headerPointer, i + 1);
                Items[i].ItemPointer = ip;
            }
        }