Re: Program to convert binary stream to ASCII
> (what my dad is doing, is hooking a credit-card
> reader up to a Linux, so he needs the binary stream of #'s from the reader to
> be converted to a more usable, ascii form)
The credit card readers I've seen hook into the keyboard port, and just send keystrokes to the computer. No conversion necessary.
But if you really do need some kind of conversion, you need to specify exactly what kind of conversion you want. There are many ways to convert a binary stream to printable ASCII, including:
uuencode
base64
hexdump
The last one, hexdump, might be what you're looking for.
-- Kevin
Reply to: