title: Playfield with binary file
body: <p>I am programming a board game and I have  to make a binary file called "write" that always writes the current playfield. It contains information like the active player, the biggest and the smallest x/y coordinate. Fields without tokens on it should have the value zero. It has to be done so that the program can be tested automaticly easier.</p>
  
  <p>I thought about making a class called CurrentField that I write in my binary file after every turn, but I'm not sure how I can ensure that everything will be written in the place where it needs to be (we have to declare a specific header and certain things are expected to be in a certain offset).</p>
  
  <p>Any ideas about that? Good idea, or is there a better way to do this? </p>
  
  <p>Edit: And does anyone know a way of testing what really has been written to the binary file?
  Edit2: It has to be solved with c++ standart libraries. 
  The performance is not that important since it will not be a large file. The idea of writting only if a command is entered is good.</p>