[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Read a file from the archive
Source position: libtar.pp line 170
public procedure TTarArchive.ReadFile( |
Buffer: POINTER |
); overload; |
Stream: TStream |
); overload; |
Filename: string |
); overload; |
Buffer |
|
Memory buffer to copy file contents to. |
Stream |
|
Stream to copy file contents to. |
Filename |
|
Filename for file in which to write file content. |
File contents as string
ReadFile can be used to read the current file in the archive. It can be called after the archive was succesfully positioned on an entry in the archive. The file can be read in various ways:
An exception may occur if the buffer is not large enough, or when the file specified in filename cannot be opened.