Opens or creates an archive file.
procedure OpenArchive; overload;
procedure OpenArchive(Mode: Word); overload;
procedure OpenArchive(Stream: TStream; Create: Boolean); overload;
Description
Call OpenArchive to open or create an archive file. If file specified by FileName property does not exists, Create parameter is set to True or InMemory property is set to True then OpenArchive will create and open it. OpenArchive sets Active to True.
Mode parameter specifies open mode constant like in TFileStream.Create or FileOpen function.
Stream specifies TStream descendant object with the archive contents. If you use this form of the OpenArchive InMemory and FileName will be ignored. This variant can be used if you want to store archive in TFileStream, TMemoryStream, BLOB stream or any other TStream descendant object.
The Create parameter determines if file should be created.
Note: Call CloseArchive to close the archive file.
|
|