kcd-clan Posted July 18, 2006 Posted July 18, 2006 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()
w0uter Posted July 18, 2006 Posted July 18, 2006 $chars = string = 0 you need to Asc($chars) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
kcd-clan Posted July 18, 2006 Author Posted July 18, 2006 (edited) thanks w0uter its all good now just add if $chr=1 the chr =01 Edited July 18, 2006 by kcd-clan Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
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