title: fwrite/fread doesn't work well in Windows
body: <p>I wrote a program in that create a structure variable, then write it in a file using the function <code>fwrite</code>. The returned code is 1 (I wrote just one structure variable). When I tried to read the file with <code>fread</code> function it returns <code>0</code> and the variable is not filled completely. </p>
  
  <p>This problem is specific for windows only. I tried the same code with Linux (Ubuntu virtual machine) and it worked well.</p>
  
  <p>Here is the structure:</p>
  
  <pre><code>struct MyStruct
  {
      char comment[40];
      int nbpts;
      float time[4096];
      float value[4096];
  };
  
  FILE* fp = fopen(fileTrace, "w");
  fwrite(&amp;var, sizeof(struct MyStruct), 1, fp);
  
  
  fread(&amp;var, sizeof(struct MyStruct), 1, fp);
  </code></pre>
  
  <p>Any ideas?</p>