Tsukihime Posted May 11, 2011 Posted May 11, 2011 (edited) Given a hex offset, this is how I am setting the file position from the beginning of the file: $offset = "2e" FileSetPos($myFile, dec($offset), 0) Can I do it without converting it to decimal? Edited May 11, 2011 by Tsukihime
jvanegmond Posted May 11, 2011 Posted May 11, 2011 Of course, if you need a hex number then don't write it down as a string. $offset = 0x2e FileSetPos($myFile, $offset, 0) github.com/jvanegmond
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