title: C++ best file format to store lot of map coordinate
body: <p>I have implemented the <a href="http://en.wikipedia.org/wiki/Diamond-square_algorithm" rel="nofollow" title="diamond-square algorithm">diamond-square algorithm</a> and I would like to store the map data in a file format. I'm mostly a beginner in C++, or at least in file reading and writing, so I have problem where to store a lot of data.</p>
  
  <p>For example if I create a 65*65 map, then it's 16384 triangles, and each got 3 coordinates, 3 normal coordinates. Of course I can divide it for example to 4 32*32 map piece, but it's still many. Of course what really matters is the speed, there is no problem to write all the data in txt, but it is really slow, especially when I increase the map size.</p>
  
  <p>I not really need a source, but something to read or learn from it.</p>