How would I go about modifying chars in a string as if they were bytes?
I need to read data from a file then modify it byte by byte but nothing I have tried has worked. I tried using ord chr and strlen
but the output seems to be rounded to conform to some crazy standards where the range isn't 0-255
Thanks
John
Modifying Chars in a String As If They Were Bytes
Moderator: General Moderators
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Modifying Chars in a String As If They Were Bytes
Chr() and ord() should work properly. Can you post the code you tried, or at least a little demo script that you don't think works?