[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'libtar' (#fcl)

# TTarArchive

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class to examine and read tar archives

## Declaration

Source position: libtar.pp line 159

`type TTarArchive = class`
`public`
`constructor Create();` |  | Create a new instance of the archive
`destructor Destroy; override;` |  | Destroy TTarArchive instance
`procedure Reset;` |  | Reset archive
`function FindNext();` |  | Find next archive entry
`procedure ReadFile();` |  | Read a file from the archive
`procedure GetFilePos();` |  | Return current archive position
`procedure SetFilePos();` |  | Set position in archive
`end;`

## Inheritance

`TTarArchive` |  | Class to examine and read tar archives
`TObject`

## Description

TTarArchive is the class used to read and examine .tar archives. It can be constructed from a stream or from a filename. Creating an instance will not perform any operation on the stream yet.

## See also

TTarWriter |  | Class to write tar archives
FindNext |  | Find next archive entry