Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ahsannjavaid/simple-crud
- Owner: ahsannjavaid
- Created: 2024-02-18T09:47:53.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-17T11:23:38.000Z (8 months ago)
- Last Synced: 2024-09-30T13:03:53.082Z (about 2 months ago)
- Topics: crud, file-handling, ide, java, jre, jvm, netbeans
- Language: Java
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.