I have a while loop that is reading a file line by line. Based on some conditions, I want to delete a few lines of the same file to reduce the loop time(As the file has millions