title: convert int to const char* in order to write on file
body: <p>I have the following code in C++ and I would like to convert a integer to a const char* in order to write on a file. I tried itoa or sstream functions but it's not working.</p>
  
  <pre><code>FILE * pFile;
  pFile = fopen ("myfile.txt","w");
  
  int a = 5;
  
  fputs (&amp;a,pFile);
  fclose (pFile);
  </code></pre>
  
  <p>Thanks in advance</p>