Rather than trying to compress general forms of data, we will concentrate on compressing textual information. Of course we also will need to provide the reverse uncompress capability. The system will be a command-line driven system. If filename is a file already compressed by the KomPress system, uncompression will be performed. If the file contains any other kind of data an explanation for no action will be provided for the user.
All error messages are to be sent to stderr .
If no such extension exists on the original compressed file, the user should be warned that the system intends to overwrite the original file and should be given the option of aborting the uncompression. KomPress is a simplified version of the UNIX compression utility, compress . It uses a recent, though rather simple Huffman compression algorithm and provides for a reduced set of user services specified via normal command line switches. Introduction There are a number of purposes of this project. Introduction to Data Abstraction One of the major concepts in the second computer science course, as described in the ACM curriculum is the idea of encapsulating data structures and then defining interfaces of functions providing the only means of access and manipulation of the data.