in reply to I don't understand string versus numeric context
sprintf does not output anything. Maybe you wanted printf? Also, the byte you read from the file needs to be converted to a number before you can output it via %u. Most likely you want ord or unpack for that.
|
|---|