Sign in to follow this  
Followers 0
kcd-clan

I cant read hex? hex() ? help

4 posts in this topic

Why dose it read it incorect

It comes to 00 when hex is really 01

$files = FileOpen($location&$file, 0)
; Check if file opened for reading OK
If $files = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

; Read in 1 character at a time until the EOF is reached
While 1
    $chars = FileRead($files,1)
    If @error = -1 Then ExitLoop
    MsgBox(0,0,$chars)
    $hex=Hex($chars,2)
  MsgBox(0,0,$hex)
Wend
FileClose($files)

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()

Share this post


Link to post
Share on other sites



are you trying to read in raw mode?

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  
Followers 0