Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So my program is stuck at this level I don't know how to save array in the list to file
what I mean is save list like this

list = ({"Car", "Bicycle", "Truck"}, {"Flour", "Tea", "Cheese"}) and more
so when I save it to the list then I load it I can return the string like

VB
list = ({"Car", "Bicycle", "Truck"}, {"Flour", "Tea", "Cheese"})
list(0)
#and it will return {"Car", "Bicycle", "Truck"}
list(0)(2)
#Truck
list(1)
#{"Flour", "Tea", "Cheese"}
list(1)(0)
#Flour


VB
Dim list As New List(Of String())
list.add({"Car", "Bicycle", "Truck"})
list.add({"Flour", "Tea", "Cheese"})
#and save it to the file


or something like,
this anyone can help me ? maybe with my.settings and .ini or something like that
Posted
Updated 30-Jun-14 18:16pm
v3

1 solution

There can be many different ways to persist data. If based on some regular approach, this is called serialization: http://en.wikipedia.org/wiki/Serialization[^].

What approach to serialization to choose? I would strong advice this one, based on data contracts: http://en.wikipedia.org/wiki/Serialization[^].

—SA
 
Share this answer
 
Comments
Member 10915414 1-Jul-14 1:49am    
so I've been searching fo video to create serialization file and viola, perfect thx you so much
Sergey Alexandrovich Kryukov 1-Jul-14 9:52am    
You are welcome. Learning anything serious by video? Hm... :-)
—SA
Member 10915414 4-Jul-14 3:00am    
yeah, because I'm new on vb net, before that I'm on python.. If I hard to understand tutorial from this site or other site, I'll find video tutorial, sorry my english is not good :D
Member 10915414 1-Jul-14 1:50am    
http://www.youtube.com/watch?v=d3jioX3w-QA this is the video

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900