I need to print packaged binary data to stdout in C++. Are there any STL libraries that can accomplish this? I know perl has this functionality but I need to be able to do it in only C++. If c++ does not have this functionality can someone please guide me on how I would go about programming something like this. Thank you.
Asked
Active
Viewed 4,070 times
2
-
I *think* he's asking how to open a binary file and write its contents to STDOUT. – Anon. Jan 25 '10 at 00:17
-
There are a million and 1 command line tools that already do this (depending on your exact needs). What about octal dump 'od' on the command line. – Martin York Jan 25 '10 at 02:39
-
Does this answer your question? [What is the simplest way to write to stdout in binary mode?](https://stackoverflow.com/questions/16888339/what-is-the-simplest-way-to-write-to-stdout-in-binary-mode) – yeerk May 03 '20 at 08:02