Just a simple script to encode and decode text files via Lempel-Ziv method; I used 30 first chapters of "Pride and Prejudice" as an example; If you want to check this out - put some text in the 'input.txt' and compile the script;