Text formating/alignment

Hi, I have to make text look like this:

00 FA FF 0A 3C 09
A0 DE AD FC 00 09
FA FF AC FB 10 0D
00 00 A1 F1 ED 00
...

Maybe someone can tell me where to start?
Anyone?
Print it in hex?

Look up the following I/O manipulators on this site:

std::hex
std::setw
std::setfill

Yes! and no. I'm writing a GUI app so I'll put formatted text into text box and someone will try to edit and save... and crap everything up...
When editing hex there must be no way to delete spaces and this
FF 00 DB
can't become this:
FF A DB
and so on...
So where to start?
Topic archived. No new replies allowed.