Tsukihime Posted May 11, 2011 Share 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted May 11, 2011 Share 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 Link to comment Share on other sites More sharing options...
Tsukihime Posted May 11, 2011 Author Share Posted May 11, 2011 Oh that's pretty simple lol 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