notepad database

I'm currently working on c++ program that uses notepad us database. My problem is that how can i delete data from the notepad when i make any changes in the store item in the notepad database.

Please help. ..
This is Data Structures 101.

You need to check out how to delete from a sequential access data structure.
this from my OOP subject we're ask to make IS in C++ thats why i need to add and delete from the notepad and i'm finding it hard to search the line of characters that i would like to delete stored in the notepad.
closed account (Lv0f92yv)
If it's finding the characters (position in a string) to remove, you can use functions provided by <string> library to determine the position in the string of a certain character(s).

Or, you could just read in the existing line, saving the stuff you want to write back in a temp buffer, and ignore the rest, then when you are done reading, just write the temp buffer back.

Without more information about what you mean by "notepad" and how the data is stored, I can't be much help.
Topic archived. No new replies allowed.