Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
VB.NET to save a byte array to a binary file
VB.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
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.