Can any one show me how to create file compression, the principle behind it and if possible give a small sample, or advise me on a particular book.

Thanks in advance!!!