A simple C program to compress/decompress file contents using Run-Length Encoding algorithm
I wrote this program because this is one of the assignments that my teacher gave me, and I also have some interest, so I decided to publish it on Github
First clone this repo to your machine, then cd
to that repo and run
make
This project was compiled and succesfully tested on:
- Linux
_ _
| | (_)
_ __| | ___ ______ ___ ___ _ __ ___ _ __ _ __ ___ ___ ___ _ ___ _ __
| '__| |/ _ \______/ __/ _ \| '_ ` _ \| '_ \| '__/ _ \/ __/ __| |/ _ \| '_ \
| | | | __/ | (_| (_) | | | | | | |_) | | | __/\__ \__ \ | (_) | | | |
|_| |_|\___| \___\___/|_| |_| |_| .__/|_| \___||___/___/_|\___/|_| |_|
| |
|_|
Usage:
./rle-compression [options] [files]
Options:
-b, --banner Display the banner
-e, --encode Encode content of files
-d, --decode Decode content of files
-h, --help Display this help and exit
-v, --version Show this program version
Examples:
./rle-compression -b -e test.txt
./rle-compression -b -d test.txt.enc
While creating this program, I utilized various websites as resources. I hope that this will useful...
- Run Length Encoding and Decoding
- Run-Length Encoding (RLE) Algorithm: Step-by-Step Guide
- Online rle-compression tool from dcode.fr
- ASCII banner
This project is published under MIT License