A simple text compression and decompression project written in pure C using the Run-Length Encoding (RLE) algorithm.
This project is lightweight, doesnβt require external libraries, and can even run on Android devices using Termux or Cxxdroid.
input.txt
) into a simple .rle
format.rle
files back to the original textZipProject/ ββ src/ β ββ main.c # Main C code ββ input.txt # Sample text file ββ output.rle # Compressed file generated ββ decompressed.txt # Decompressed output
https://F2Codes.GitHub.io/ZipZip/
Install Termux and tools: ```bash pkg update pkg install clang git use bash and download ZipProject
Navigate to project folder:
cd ZipProject/src
clang main.c -o myzip
./myzip
1 β Compress input.txt β output.rle
2 β Decompress output.rle β decompressed.txt
π‘ Notes
RLE is simple and effective for repetitive text, but not ideal for large or binary files.
You can expand this project to support multiple files or folders.
Perfect for learning file I/O, loops, and basic compression in C.
π License
This project is licensed under the MIT License.
Made with β€οΈ by Matin