I want to write binary to a file.
I am looking at the function std::ofstream::write().
It takes a pointer and how many bytes to write. Is there anyway I can do something simple like
ofstream.write(36);
instead of to do it in two lines like...
int out = 36; ofstream.write((char*)&out , 4);