Just a question on the code i've posted below.
It writes to the file out.bin but when i view it (thru notepad or edit or whatever) i can see the word "HELLO".
If this is a "binary" file should i be able to see the characters like that? I thought i mite get the bit equivalents.....
using namespace std;
char file = "out.bin";
char buffer = "HELLO";
outFile.open(file, ios::out | ios::binary);
outFile.write (reinterpret_cast< const char* >(buffer), 5);