BKVB
BKVB

Reputation: 35

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 ...)

thanks

Upvotes: 0

Views: 1166

Answers (2)

bala
bala

Reputation: 56

You could use xml serialization that is available in VB.NET. See http://support.microsoft.com/kb/316730 for details.

Upvotes: 2

Daniel Powell
Daniel Powell

Reputation: 8303

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.

Upvotes: 0

Related Questions