Sign in to follow this  
Followers 0
PerryRaptor

Read, write, create, and edit Binary Files

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

Any other ideas?

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
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
Sign in to follow this  
Followers 0