[comp.lang.pascal] How to detect compression methods

marcos@outland.UUCP (Marcos Della) (05/13/91)

Does anyone know what the "magic" numbers are or how various programs
detect the type oc compression that was done on a file?  I'd like
to be able to determine if a file is .ZIP, .ARC, .LZH, or .ARJ just
by looking at the first record of the file...
 
Any clues?
 
Marcos

____________________________________________________________________________
Marcos R. Della                           | Did you ever wonder if there was
outland!marcos@petunia.CalPoly.EDU (home) | more to the universe than this?
mdella@polyslo.CalPoly.EDU       (school) |
marcos.della@f185.n125.z1.fidonet.org     |         ...I didn't...