title: Using fputs with an argument of type string
body: <p>I'm using fputs in C++ to write a string in a file. </p>
  
  <pre><code>fputs (const char*, FILE*);
  </code></pre>
  
  <p>If I use a simple statement like,</p>
  
  <p><code>fputs ("information", pFile);</code> </p>
  
  <p>everything is ok and "information" will be written in the file. But if I write a variable of type,</p>
  
  <p><code>std::vector&lt;std::string&gt;</code></p>
  
  <p>into the file, some non-ascii characters are stored in the file. Do I have to use a method to convert type <code>std::vector&lt;std::string&gt;</code> into a format which fputs can recognize ?</p>