Not sure I understand what the question is. In the title it asks how to save the data but the code just posted is reading the data from file meaning it is already saved.

What is it that you are...