Digisoul Posted February 19, 2009 Share Posted February 19, 2009 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. 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 19, 2009 Share Posted February 19, 2009 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 More sharing options...
Digisoul Posted February 20, 2009 Author Share Posted February 20, 2009 (edited) 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 February 20, 2009 by Digisoul 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 20, 2009 Share Posted February 20, 2009 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 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