I need to delete lines of text from an external file. How can I go about doing this? Each line is an instance of a 4-member struct (int, char, int, double), if that helps any. Ideally, I would like to be able to delete a line until EOF.
Also, a question - if I have say, 5 lines, and I want to delete line 3 and after: if the program deletes all 3 lines, does it consider the whitespace to still be active, and therefore, EOF would still be where it was before the deletions? I need to delete the remaining lines, and make the EOF marker be at the end of the last line remaining after the deletions (line 2).
BTW, I've asked 2 questions before that were answered: One by JKR, and the other by Axter - I've tried to accept their answers, but I'm getting a 500 Apache error