Read Binary FIle in VB.net

View previous topic View next topic Go down

Read Binary FIle in VB.net

Post  Admin on 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
avatar
Admin
Admin

Posts : 256
Join date : 2008-06-06

View user profile http://debmedia.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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