19-12-2012, 06:35 PM
TEXT COMPRESSION AND DECOMPRESSION
TEXT COMPRESSION AND DECOMPRESSION.docx (Size: 12.82 KB / Downloads: 24)
Algorithm:
1. Declare the header files and required variables.
2. Using the file input stream get the input datas.
3. Using GZIP print the output in another file.
4. Check the input data and write it in output file
5. The compression takes place after this condition
6. Close the file and else print error.
7. Halt the program
8. Likewise decompression also takes place.
9. the output file of compression is input for decompression
10. Halt the program