Recently, I have been having problems with the code below. I enter in my information perfectly fine, but after that, it will not display the information as it should. It displays
Writing to file
, but does not show the file information. To do that, I have to delete lines 13-20.
Here is program output:
What is the person's name?
Lawrence Huang
What is Lawrence Huang's sex? (F for female, M for male)
M
What is Lawrence Huang's birthdate?
7 26 2004
Writing to file.
Program ended with exit code: 0
I should be getting something along the lines of this:
What is the person's name?
Lawrence Huang
What is Lawrence Huang's sex? (F for female, M for male)
M
What is Lawrence Huang's birthdate?
7 26 2004
Writing to file.
Lawrence Huang M 7 26 2004
Program ended with exit code: 0