Jump to content
Sign in to follow this  
Tsukihime

FileSetPos offset in hex

Recommended Posts

Tsukihime

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 by Tsukihime

Share this post


Link to post
Share on other sites
jvanegmond

Of course, if you need a hex number then don't write it down as a string.

$offset = 0x2e
FileSetPos($myFile, $offset, 0)

Share this post


Link to post
Share on other sites
Tsukihime

Oh that's pretty simple lol

Share this post


Link to post
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
Sign in to follow this  

×