S
spike232
Guest
i have the following code that works for binary serilisation:
however the folloing to do the same but using xml insted does not work, any ideas??
Code:
Private Sub binarysave(ByRef hold As Object, ByVal filename As String)
Dim s As Stream = New FileStream(filename, FileMode.Create)
Dim b As BinaryFormatter = New BinaryFormatter()
b.Serialize(s, hold)
s.Close()
End Sub
however the folloing to do the same but using xml insted does not work, any ideas??
Code:
Private Sub xmlsave(ByRef hold As settings, ByVal filename As String)
Dim s As Stream = New FileStream(filename, FileMode.Create)
Dim x As XmlSerializer = New XmlSerializer(GetType(settings))
x.Serialize(s, hold)
s.Close()
End Sub