Skip to content

muqeet-suhail/Rust-File-Reader-Writer-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‚ Rust File Reader & Writer Application βœοΈπŸ“–

Welcome to Rust File Reader & Writer Application, a simple yet powerful command-line tool built in Rust for reading from and writing to text files. This project uses Rust's std::fs & std::io modules along with buffered I/O for efficient file handling. Whether you want to quickly append some text or read file contents instantly, this tool gets the job done!

πŸš€ Key Features

  1. πŸ“ Write to File: Add custom text to any file with ease
  2. πŸ“– Read from File: Instantly view the contents of your file
  3. ⚑ Buffered I/O: Ensures fast and efficient read/write operations
  4. πŸ›‘ Error Handling: Graceful handling of missing or inaccessible files
  5. πŸ“‚ Any Text File: Works with any .txt file or similar text-based format

πŸ›  How It Works

  1. πŸ“‚ Provide File Path: Run the program with the file path as an argument
  2. πŸ–₯ Choose an Option:
    • 1 β†’ Write to file
    • 2 β†’ Read from file
  3. ✍ Write Mode: Enter your text and it will be saved into the file
  4. πŸ‘€ Read Mode: Displays the file’s content or shows β€œFile is empty” if no data exists
  5. ⚠ Error Alerts: If file not found, the program exits with an error message

πŸ’» Getting Started

To run this project locally, follow these steps:

β–Ά Step 1: Install Rust –> Download here

β–Ά Step 2: Clone this repository:

git clone https://github.com/yourusername/Rust-File-Reader-Writer-Application.git
cd Rust-File-Reader-Writer-Application

β–Ά Step 3: Build and run the project:

cargo run

About

Read & write text files in Rust, fast, simple, and reliable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages