I have a project that is suppose to take data for employees, put them into vectors, then allows the user to sort out the data based on the separate inputs (ex: ID, first name, etc.) then save the info to a file once done. So far everything works except for when I go to save it to file, it only creates the file, but not save it. The code is also suppose to check if a file already exists and asks the user if he/she wants to overwrite it. Here is the code: