I'll keep this short. I'm just starting on programming and i'm trying to make a program that will open a .BIN file edit it and save it. But i need help with the Opening the .BIN file. I'm not sure how to go about opening that file. Any help would be appreciated.
Unsure of what you're asking but eh lol.. maybe this? This will basically allow you how to open a .bin only.. without the actual reading.. or maybe I interpreted wrong. Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim Open As New OpenFileDialog Open.Filter = "bin (*.*)|*.*" Open.Title = "Open Ze Bin" If Open.ShowDialog =Windows.Forms.DialogResult.OK Then FilePath = Open.FileName ReadFile(FilePath) Else Return End If End Sub
That's how i open the file. But i would like to read it, using HEX code. and of course i don't know how to build that yet. Basically i need to figure out how to open in it HEX the rest i can do for myself.
Code: Public Sub ReadFile(ByVal FilePath As String) Dim Reader As New PackageIO.Reader(FilePath, PackageIO.Endian.Big) Reader.Position = &HD032 NumericUpDown1.Text = Reader.ReadInt32 End Sub Something like this? Where D032 is the offset?
hmm what game are you trying to open sence all .bin files are different that i know of so far (if you found out the offsets for the .bin you should be able to extract it)