Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahsannjavaid/simple-crud

This is my first java project that is a very simple CRUD console based application that uses TXT file as a database. NetBeans IDE has been used to develop this application.
https://github.com/ahsannjavaid/simple-crud

crud file-handling ide java jre jvm netbeans

Last synced: about 1 month ago
JSON representation

This is my first java project that is a very simple CRUD console based application that uses TXT file as a database. NetBeans IDE has been used to develop this application.

Awesome Lists containing this project

README

        

# Simple CRUD through TXT file Java Program

This is a simple Java program that demonstrates file handling operations such as writing to a file, reading from a file, searching for a name in a file, editing a name in a file, and deleting a name from a file.

## Features

- **Write name in file**: Allows the user to enter a name and writes it to a file.
- **Read names from file**: Reads all the names from the file and prints them.
- **Search name from file**: Searches for a name in the file and prints it if found.
- **Edit name**: Allows the user to edit a name in the file.
- **Delete name**: Allows the user to delete a name from the file.
- **Quit**: Exits the program.

## Usage

1. **Compile**: Compile the program using `javac FileHandling.java`.
2. **Run**: Run the program using `java FileHandling`.
3. **Menu**: Choose an option from the menu to perform the desired operation.

## Example

```
1. | Write name in file
2. | Read names from file
3. | Search name from file
4. | Edit name
5. | Delete name
6. | Quit
Enter your choice: 1
Enter the name: John Doe
Name written successfully!
```

## Note

- The program uses a text file named `names.txt` to store the names. Make sure this file exists in the same directory as the program.
- The program uses a simple text-based menu for user interaction.

## Author

This program was written by Ahsan Javed for educational purposes.

## Acknowledgments

- This program was inspired by Prof. Rana Waqas (My SMD's course instructor) and is based on the concepts of file handling in Java.