I need help fixing this C++ program that is not writing the second entry in one file to another file. It only seems to be writing the first entry only to the file and then after that the while loop is terminating, even though the end of the file has not been reached. Here is the program:I need help fixing this C++ program that is not