Jump to content

Binary Write


Digisoul
 Share

Recommended Posts

hello guys,

i want to know that how can i write binary data at Beginning of file, if i use Fileopen($file,bitor(1,16)) ?

thanks in advance for your help.

If you mean insert or only partially overwrite, you can't without using _WinAPI_CreateFile() and _WinAPI_SetFilePointer() instead.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

If you mean insert or only partially overwrite, you can't without using _WinAPI_CreateFile() and _WinAPI_SetFilePointer() instead.

:)

I know, but its not working if the file is from other network. :)

only FileOpen successfully open the file for read or write mode.

Edited by Digisoul

73 108 111 118 101 65 117 116 111 105 116

Link to comment
Share on other sites

I know, but its not working if the file is from other network. :)

only FileOpen successfully open the file for read or write mode.

Then you'll have to open an intermediate file, write the first data, then copy the rest of the original file to it.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...