Can you describe the problem in more detail? What happens when the program does not do what you want? Can you give a sample showing the contents of the file before the test and after the test? Add...