try this. You will probably need to play around with it to get it to fit your needs, but you can get the idea.
VB Code:
Dim myBinary As New IO.BinaryWriter(System.IO.File.Open("D:\My Documents\binary.txt", IO.FileMode.Create)) Dim str As IO.Stream = myBinary.BaseStream str.Write(Cases(0).XCoordinates.ToArray, 0, Cases(0).XCoordinates.Count - 1) myBinary.Flush() myBinary.Close()






Reply With Quote