Web Services
Topic: How To Serialize or Persist The Contents Of An Array Using The SOAPFormatter

Ireland .NET Developer Alliance :: Forums

Page 1 of 1 (1 items)


Posted by Paul Fox on 03-11-2005 12:49
How To Serialize or Persist The Contents Of An Array Using The SOAPFormatter

'Create an Array (LinePoints) that will be serialized to a file

Dim s As System.IO.Stream =
System.IO.File.Open("C:\Linepoints.binary", FileMode.Create,
FileAccess.ReadWrite)

Dim b As SoapFormatter = New SoapFormatter

b.Serialize(s, LinePoints)

s.Flush()

s.Close()