A
Anil Gupte
I am using the following code to write a file. The initial part (i.e.
strHeader) is just a string, then there is some Binary Data and then again a
very short string. I find that at the start of my file, there are some
(maybe 1 or 2) higher order ASCII characters (they vary). How can I prevent
the program from putting that garbage before my data?
Dim fsWriteStream As FileStream = New FileStream(myFileName,
FileMode.Create)
Dim bwWriter As BinaryWriter = New BinaryWriter(fsWriteStream)
bwWriter.Write(strHeader)
bwWriter.Write(myBinaryData)
bwWriter.Write(strSliceInfo)
bwWriter.Close()
TIA
strHeader) is just a string, then there is some Binary Data and then again a
very short string. I find that at the start of my file, there are some
(maybe 1 or 2) higher order ASCII characters (they vary). How can I prevent
the program from putting that garbage before my data?
Dim fsWriteStream As FileStream = New FileStream(myFileName,
FileMode.Create)
Dim bwWriter As BinaryWriter = New BinaryWriter(fsWriteStream)
bwWriter.Write(strHeader)
bwWriter.Write(myBinaryData)
bwWriter.Write(strSliceInfo)
bwWriter.Close()
TIA