Storing Information then Displaying
i have a simple program that asks the user for thier name, last name, and age then asks them if they want to either save the file or add new information (loops back to the begining and asks the same things).
what i cant do is store the information of each time they want to add more information and display it all in the end and then be abel to save it all at the end and re-open it (i have the file saving and opening code complete so not a problem with that).
for example
Code:
enter name: bob
last name: thornton
age:21
would you like to add more (y/n) y
enter name: tim
last name : peckitt
age: 21
would you like to add more (y/n) y
enter name: sue
last name: brigde
age: 33
would you like to add more (y/n) n
(part i cant do) display all:
Code:
bob
thronton
21
tim
peckitt
21
sue
bridge
33