What's the easiest way to write binary data to a file? I want to write actual binary, as in 1 bit rather than write 0 or 1 as an int and actually take 8 bits which is what I've done in previous program that involve reading/writing to files. I need it to be in in C, C++ or preferably Java.
Thanks for any advice.
Thanks for any advice.