Skip to content

light2802/file-compressor

Repository files navigation

DSA-Project-zip

This Project is published under GPL. So please feel free to suggest any changes to make this better
Also I am making this in my Second Year of engineering degree so please don't judge if you finad any bugs or don't feel it is up to your standards
Also please give a star on my github (light2802) if you liked it :)

Steps to run the code

Run .\aar <-parameter-> <-filename with extension->
Parameters:
-e : To encode the file
-d : To decode the file

Code flow in general terms

[Flow of Code](./Flow of code.svg)

Some things that may seem like issues but are not

The file extension is overwrriten(appended)
For ex. if you compress a file with name Demo.txt it creates new file with name Demo.txt.aar Also when you decode this Demo.txt.aar you will get your new file with name Demo.txt.aar.txt
I know it's a easy fix but I'm lazy ;)
Also the code only encodes single .txt files. Going to work further on multiple files and directories