Modula-2 || Compiler & Tools || Library || Search Engine
FROM SystemTypes IMPORT TIME, OFF;
CONST NameLength = 14; TYPE AFILE; TYPE FileName = ARRAY[0..NameLength-1] OF CHAR; TYPE AStat = RECORD name: FileName; uid, gid: CARDINAL; date: TIME; size: OFF; mode: BITSET; END;
PROCEDURE ArchiveOpen(VAR a: AFILE; archive: ARRAY OF CHAR; filename: ARRAY OF CHAR) : BOOLEAN; PROCEDURE ArchiveReopen(a: AFILE; filename: ARRAY OF CHAR) : BOOLEAN; PROCEDURE ArchiveClose(a: AFILE); PROCEDURE ArchiveRead(a: AFILE; VAR ch: CHAR) : BOOLEAN; PROCEDURE ArchiveStat(a: AFILE; VAR buf: AStat);
ArchiveOpen opens the file filename archived in the archive archive for reading. A identifies the stream in subsequent operations.
ArchiveReopen searches for the file filename in the archive of a.
ArchiveClose closes the opened stream a.
ArchiveRead stores a single character of the stream a into ch and returns FALSE on end of file.
ArchiveStat stores the status information of the archive file referenced by a into the status buffer buf.
ar(1), | more about archives |
SystemTypes | module SystemTypes |
Modula-2 || Compiler & Tools || Library || Search Engine