Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 2 KB

README.md

File metadata and controls

55 lines (41 loc) · 2 KB

RLE-Compression

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

Compile

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

       _                                                        _
      | |                                                      (_)
  _ __| | ___ ______ ___ ___  _ __ ___  _ __  _ __ ___  ___ ___ _  ___  _ __  
 | '__| |/ _ \______/ __/ _ \| '_ ` _ \| '_ \| '__/ _ \/ __/ __| |/ _ \| '_ \ 
 | |  | |  __/     | (_| (_) | | | | | | |_) | | |  __/\__ \__ \ | (_) | | | |
 |_|  |_|\___|      \___\___/|_| |_| |_| .__/|_|  \___||___/___/_|\___/|_| |_|
                                       | |                                    
                                       |_|                                    
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

References

While creating this program, I utilized various websites as resources. I hope that this will useful...

License

This project is published under MIT License