Eric Abell wrote:
> 
> I have an application that requires me to write normal string data or a
> number into a binary file. For example, if I have the string "ff", I
> want to write the byte FF to the output file.

print chr(hex("ff"));

> If I have the number 1, I want to write the byte 01 to the output file.

print chr(1);

> Also, off-topic, can anyone recommend a solid binary file editor that
> runs in UNIX? I have been using HexEdit for Windows and I would prefer
> to run only in UNIX.

khexedit


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to