It seems like this should be a simple task, but I have been unsuccessful so far. I want to read a line of text from a file, and when I'm done using it I want to delete it from the file. I know I could do something like copy the input file to a new output file just without the part I want deleted, or keep track of where I last read from the file and seek there every time, but I don't want to do either of those. I just want to read a line of text from a file, use it, then delete the text. The file will be relatively large, so any other solution would be inefficient I think. I don't care if I use fstream stuff or fopen stuff, just something that works and I can understand.
Thanks
John
Thanks
John