R
randy1200
I have the following:
short x = 3;
...
stdfstream file(outfile.txt, std::ios:ut|std::ios::trunc);
...
file << x << endl;
Of course, "3" shows up in the file. What I'd really like to see is
"00000011". I'd be very surprised to see that C++ doesn't already have an
operator to do this for me.
Thanks,
Randy
short x = 3;
...
stdfstream file(outfile.txt, std::ios:ut|std::ios::trunc);
...
file << x << endl;
Of course, "3" shows up in the file. What I'd really like to see is
"00000011". I'd be very surprised to see that C++ doesn't already have an
operator to do this for me.
Thanks,
Randy