I'm doing a daily time record that record every inputed date on a txt file how will have an option or how will I delete a some of the choosen date? i'm using C++
Load the entire file into memory.
Modify the memory.
Overwrite the file with the memory.
An easy way is to use a deque<string> to store the file in memory. Use the global getline() function to read lines from the file, appending them to the deque each time, until the file is exhausted.