When I have the user on the main menu choose (they can choose this option and any other option until they quit the program) to delete an item off the text file, the code will work perfectly and delete as many items as they want(lines 38-53). If the user enters an item that is not on the list, it will work fine (line 57) and let the user know that the item was not found and send them back to the menu. The problem I'm having is after the wrong input, if they choose to put in another item after an invalid entry, then the program won't delete the old list and rename the new list. I'll look back at the directory and the new temp file is saved but not renamed and the old file I wanted deleted is still there. So it obviously works but the Boolean is acting up. I tried to be as clear as possible, please let me know if you need more clarity. Hope you can help thanks.