A Use the following code:
Dim obj As New Object()
Dim objSream As Stream = File.Open("DataFile.dat", FileMode.Create)
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(objStream, obj)
B Use the following code:
Dim obj As New Object()
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(obj)
C Use the following code:
Dim objSream As Stream = File.Open("DataFile.dat", FileMode.Create)
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(objStream)
D Use the following code:
Dim obj As New Object()
Dim objSream As Stream = File.Open("DataFile.dat", FileMode.Create)
Dim objFormatter As New BinaryFormatter()
objFormatter.Serialize(obj, objStream)