Original Post
I must say that writing binary data to file using java is the most frustrating thing I did. and maybe I did it wrong. For making things simple, lets say I have the following class : public class FontChar { public byte bChar; public short shXPos; public short shWidth; } and I want to write an instance of this class to a file (not as text). What is the simplest way to do this ? (I want also to be able to read it using c++ without revesing bytes like java does) thx.