Read Binary FIle in VB.net
Page 1 of 1
Read Binary FIle in VB.net
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Using myReader As New BinaryReader(File.Open(My.Application.Info.DirectoryPath & "\ncm_1799", FileMode.Open))
Dim b() = myReader.ReadBytes(200)
For J As Integer = 0 To b.Length - 1
Console.WriteLine("Byte(" & J.ToString & "): " & b(J))
Next
myReader.Close()
End Using
End Sub
Using myReader As New BinaryReader(File.Open(My.Application.Info.DirectoryPath & "\ncm_1799", FileMode.Open))
Dim b() = myReader.ReadBytes(200)
For J As Integer = 0 To b.Length - 1
Console.WriteLine("Byte(" & J.ToString & "): " & b(J))
Next
myReader.Close()
End Using
End Sub
Similar topics
» Text File To Binary File in VB.net
» Get all File Size from File List box in VB.net
» DOES YOU WANT TO CREATE A FILE WITH ANY SIZE YOU NEED? EXP: A TEXT FILE OF 100 MB WITHOUT A SINGLE TEXT!!!!!!
» Select all Items of a listbox or file list box
» Read Lines from Multiline Textbox in VB.NET
» Get all File Size from File List box in VB.net
» DOES YOU WANT TO CREATE A FILE WITH ANY SIZE YOU NEED? EXP: A TEXT FILE OF 100 MB WITHOUT A SINGLE TEXT!!!!!!
» Select all Items of a listbox or file list box
» Read Lines from Multiline Textbox in VB.NET
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum