Possible Logic Error: remove(vector.begin(),vector.end(),val)

I am looking for a way to delete certain lines in a file. I read on Stack Overflow that the best way to do this is to write it into a vector, and then remove the element from the array, and then read the array back into the file. I was doing this, and was… Read More Possible Logic Error: remove(vector.begin(),vector.end(),val)