write to a file (and read from it later) an array of structure (vb.net)
I have an array of structure like this:
Structure Planner
Dim Type As String
Dim Circuit As String
Dim Socket As String
Dim StepCMDText As String
End Structure
how do i write it into a file? (also read it later ..开发者_StackOverflow社区.)
thanks
You could use xml serialization that is available in VB.NET. See http://support.microsoft.com/kb/316730 for details.
You could write it as a csv file but simply iterating over a list and then separating each value by a comma otherwise you could serialise it and write that to a file.
精彩评论