Jump to content

Read, write, create, and edit Binary Files


Recommended Posts

Using Beta 3.1.1.113 how can I read, write, edit, and create binary files?

I need to edit the IP/URL address in a binary file. I know how to use Debug.exe, but I don't want to use it.

I've searched the forums...found Layer's UDFs and read a number of other posts. Most posts are older than a year, and I couldn't figure out Layer's UDFs.

Link to comment
Share on other sites

FileRead() cannot read the binary file contents into a MsgBox().

Any other ideas?

Maybe the message box can't display the binary file. Try reading it into a variable, changing the first 2 characters, writing it out to a new file and then comparing the 2 with a binary viewer.

Link to comment
Share on other sites

StringLen() is replying with only two charactors.

FileGetSize() replies with 0

Windows reports the file size as 1 KB; tooltip says 780 bytes.

I've assumed the filetype to be binary since I can view/edit it using a Hex Editor.

Since any file can be viewed/edited with a hex editor how can I test the file to determine if it fits the template for a true binary file?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...