BIN2HEX - HEX2BIN
=================

These two utilities convert a binary file into a hexadecimal
representation and vice versa. They read from the standard input and
write to the standard output.

To convert a binary file, e.g. BIN2HEX.EXE into a hexadecimal
representation, run:

  BIN2HEX <BIN2HEX.EXE >XXX

Now, you can analyze or edit the file XXX. After that, you can convert
it back to binary using:

  HEX2BIN <XXX >B2H.EXE

Note that when translating from hexadecimal to binary, only the
hexadecimal data is considered, not the ASCII representation on the
right side of the BIN2HEX output. The ASCII part is only for
informative purposes.

Also note that the positions of the hexadecimal codes on each line must
be exactly maintained so that HEX2BIN can operate correctly.


If you are using PalEdit, you can integrate these utilities into
PalEdit as follows:

 - Add the line "&Hex edit = hexedit.bat %s" (w/o the quotes)
   to the [Filter] section of PE.CFG.
 
 - Make sure the files BIN2HEX.EXE, HEX2BIN.EXE and HEXEDIT.BAT (which
   is also included in this archive) are on the DOS path.

Now, you can load a binary file into PalEdit, select the part of it that
you want to edit, and press Ctrl-X R H. This will start another
instance of PalEdit and you will see the code in hexadecimal form.
You can now edit the data and save the file. When you quit PalEdit, you
will be taken back to the previous instance of PalEdit and the modified
code will be updated.

Note that there must be enough free memory to launch another instance
of PalEdit.

BIN2HEX and HEX2BIN is freeware.

Andreas Garzotto, May 1996
