Link to home
Start Free TrialLog in
Avatar of fost0127
fost0127

asked on

Easiest Ascii to Hex program?

This was the only forum I could think to ask...

If I have a file that is nothing but an ascii text file of hex code how can i get it to be hex code... so the file contents are like

d0cf00ff

and so on...  It is quite long so I don't want to cut and paste too much.  The text is in one long continuous line so no spaces or line breaks.  Any ideas?

Thanks so much
ASKER CERTIFIED SOLUTION
Avatar of schwertner
schwertner
Flag of Antarctica image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try this link

http://www.simtel.net/pub/msdos/binaryed/

There's a lot of hex and binary  and ascii editors here.  One of these should be suitable for the job.
Avatar of nmeat
nmeat

Are you looking for a small program which does the job or do you want to have some help coding on it yourself ?
YES! and you already have it on your computer (Microsoft Operating systems).

It's called 'DEBUG'

At a DOS prompt, type
   DEBUG file.txt
or whatever your file name.

type D {enter}
to display your data.

Usually, non-EXE files will start at offset 100, so you can type
D100 {enter}
to display from the start of the file.
Of course, we could always write you a simple utility that converts the stuff to HEX and outputs to a different file.
Avatar of fost0127

ASKER

Actaully I ended up using Frhed...  I don't have to insert lines line numbers and what not.  The only nasty part is cutting and pasting the data chunk of a packet.