I’m having a problem creating a method to save a list of buttons in a file and then load them back into my program when it starts again. Simply put, how do I save a list into a file and then load that file back up as a list again?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One possibility is to use:
Then you can use
to save an element to the file. You will have to iterate over all elements of the list.
EDIT: I dont’t know whether it is possible to use something like
But you should definitely try it .