My apologies my c++ abilities are poor (self taught)
I have a text file that needs editing
the first 10 lines of the file needs replacing
but the other 1,000,000 + lines don't
I need the information in the first 10 lines to know what to edit them to
i get the information from the file with ifstream
how do i replace the first 10 lines of this text file without deleting the whole file and just writing those ten lines
is this possible or do i have to loop through the whole file copying to another
Thanks