Opens an existing document. Hex Editor tries to get a read-only access to the file. It also denies write access to all future open attempts, until the file is closed. Complexity: constant-time.
If supported by the file system, the name may be actually the name of the alternate data stream. Hex Editor fully supports NTFS alternate data streams. You may use any method provided by the object after opening the file stream. Note however, that there are few limitations that are described in the IFileDocument.Save method section.
Opening a document
FileDocumentLib.FildDocument fdoc = new FileDocumentLib.FildDocument();
fdoc.Open(@"\\server\share\somefile.bin",false);