home *** CD-ROM | disk | FTP | other *** search
- program Compress;
-
- { Program to demonstrate use of TLZWFilter }
-
- uses
- objects,streams;
-
- procedure SyntaxExit(s:string);
- begin
- writeln;
- writeln(s);
- writeln;
- writeln('Usage: COMPRESS Sourcefile Destfile [/X]');
- writeln(' will compress the source file to the destination');
- writeln(' file, or if /X flag is used, will expand source to destination.');
- halt(99);
- end;
-
- var
- Source : PStream; { We don't know in advance which will be compressed }
- Dest : PStream;
-