have an idea for a txt doc

I haven't written the code yet, but I need to get to the a point in the text document where the user enters the point title (reservation title in the system). I was reading on fscanf, and getline, pointers, seekg seekp, tellg tellp, really anything in the fstream family. I think once I can get to X point in the txt file I can go on from there(see below).

I then need to print over the point with " "(blank space therefore deleting the section) where I would have each reservation title separated by "---".

I was thinking of do[fprintf " "}(while fscanf !=---) using Bool to know when to stop printing " ".

Do you think I am going in the right direction?
Topic archived. No new replies allowed.