Delete some specific data present in a file.What ever user want to delete that will be deleted from file in c++
Suppose file contain 5 6 9 10 numbers
I want to delete 9 number which is present in a file
Please give code for it if any one know.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First read the file, and then overwrite it with the data you just read. While overwriting, just make sure that you don’t write the “specific” data which you want to delete. That way you’ll have a file that wouldn’t contain the “specific” data anymore!