I am writing many instances of a C++ object (below) to file in binary.
struct Example
{
double a, b;
char c;
Object d;
};
If I want to read this data from C++ I just reinterpret_cast<Example> and extract the members.
However, I'd like a non-programmer to be able to scroll and read the file, like the Linux program less. Unfortunately less doesn't understand the binary data of Example.
I know I could just have a C++ script which simply writes the binary file to an ASCII file but the data is large and cannot be re-written to disk.
What is the best way of achieving this?