I am looking for a way to read a chunk of bytes from a file and compare it to an array of byte values. I believe my problem is in reading the bytes from the file. I need to somehow get the byte values into an array, but I only know how to read strings (using the read command). Once I get that, I figured I could just use a loop to check each of the values.
On more of a side note, in my original array of values, I hardcoded some of the elements as 'a'. Will this give me the ascii value for that caracter as I expect, or does it not work that way in perl? (I am more used to C++)
Thanks in advance for any help or hints.
- Monolith
In reply to Comparing the bytes of a file by Monolith-0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |