I am writing a program that uses prints a hex dump of its input. However, I\'m running into problems when newlines, tabs, etc are passed in and destroying my output formatti
You can escape the backslash to make it print just a normal backslash: "\\n".
"\\n".
Edit: Yes you'll have to do some manual parsing. However the code to do so, would just be a search and replace.