Skip to content

Aditi311555/fileCompressor

Repository files navigation

fileCompressor


File Compressor using Huffman Coding

Overview

A Java-based file compression tool that uses Huffman Coding to reduce the size of text files, providing efficient and lossless compression.

Features

  • Compresses and decompresses text files using Huffman Coding.
  • Achieves significant size reduction with lossless data recovery.
  • Command-line interface for easy usage.

Usage

To compress:

java FileCompressor compress input.txt output.huff

To decompress:

java FileCompressor decompress output.huff decompressed.txt

Technologies Used

  • Java for implementation
  • Huffman Coding for compression
  • Data Structures: Binary Tree, Priority Queue

Setup

  1. Clone the repo:
    git clone https://github.com/your_username/file-compressor.git
  2. Compile:
    javac *.java
  3. Run the compressor/decompressor.

Future Enhancements

  • Add GUI support.
  • Extend to handle binary files.

This version gives a quick overview while highlighting key details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages