Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
VB.NET to save a byte array to a binary fileVB.NET Example Source Code to save a byte array to a binary file. ' VB.NET to save a byte array to a binary file.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim fStream As New FileStream("byteArray.dat", FileMode.CreateNew)
Dim bw As New BinaryWriter(fStream)
Dim data(19) As Byte
Dim i As Integer
For i = 0 To 19
data(i) = CByte(i)
Next i
bw.Write(data)
bw.Close()
fStream.Close()
End Sub
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.