Kakarot1212
Resident Programmer
- 562
- Posts
- 11
- Years
- Phillipines
- Seen Apr 28, 2025
I think this is the best place to post this.
AND I NEED THIS TO BE ANSWERED QUICK!
So i'm working on a project, simple library system. I just don't know how to do this one thing.
Example, the user will input the following datas: title, book number and author.
My question is, 1) how do I output it to a .txt file 2) how can I edit that txt file afterwards and 3) how can I delete the txt file. I know it is through fstream, but i don't know how to do it.
Give some sample code if possible. Help is appreciated!
Edit: Here's the code of my Library system if you need.
https://pastebin.com/6pm1a5NA
AND I NEED THIS TO BE ANSWERED QUICK!
So i'm working on a project, simple library system. I just don't know how to do this one thing.
Example, the user will input the following datas: title, book number and author.
My question is, 1) how do I output it to a .txt file 2) how can I edit that txt file afterwards and 3) how can I delete the txt file. I know it is through fstream, but i don't know how to do it.
Give some sample code if possible. Help is appreciated!
Edit: Here's the code of my Library system if you need.
https://pastebin.com/6pm1a5NA
Last edited: