Debmedia Creation Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Read Binary FIle in VB.net

Go down

Read Binary FIle in VB.net Empty Read Binary FIle in VB.net

Post  Admin Thu Jan 29, 2009 3:58 pm

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
Admin
Admin
Admin

Posts : 256
Join date : 2008-06-06

https://debmedia.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum