PerryRaptor Posted March 11, 2006 Share Posted March 11, 2006 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 More sharing options...
w0uter Posted March 11, 2006 Share Posted March 11, 2006 (edited) use a dllcall to createfile & setfilepointer & writefile in kernel32.dll and larry you dont need filegetsize anymore Edited March 11, 2006 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
PerryRaptor Posted March 19, 2006 Author Share Posted March 19, 2006 FileRead() cannot read the binary file contents into a MsgBox(). Any other ideas? Link to comment Share on other sites More sharing options...
billmez Posted March 19, 2006 Share Posted March 19, 2006 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 More sharing options...
PerryRaptor Posted March 25, 2006 Author Share Posted March 25, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now