title: Gtk+ File handling with C
body: <p>Does anyone know file handling using GTK. I need to open a file in "w+" mode and write to it. I dont know if file handling exists in GTK. Below is a sample 'C' program that I need in GTK format.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char *argv[]) {
  
   int a = 5;
   float b = 3.14;
   FILE *fp;
  
   fp = fopen( "test.txt", "w+" );
   fprintf( fp, "  %d   %f", a, b ); 
   fwrite(----);
   fclose( fp );
  }
  </code></pre>