micechal Posted December 20, 2014 Posted December 20, 2014 (edited) Hi. I'm trying to append some bytes to a file not being a text file. I'm using this code right now: FileWrite($handle, 0) And it is appending bytes, albeit too much. After this operation, file size is increased by 4 bytes, but I want more precision. I want to be able to append as little as possible - one byte. How can I do this? Solved by doing this: FileWrite($handle, Binary("0xFF")) Edited December 20, 2014 by micechal
micechal Posted December 20, 2014 Author Posted December 20, 2014 FileWrite($handle, 0xFF) This one results in FF 00 00 00
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