title: C fopen call with variable name?
body: <p>Is there ever a circumstance where the following would work? (I'm trying to pull the value of a variable and create a file based off the text stored in the array.)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      char a = "a"; 
      FILE *out;
      out = fopen( "%s.txt", a, "w" );
      fclose(out);
      return 0;
  }
  </code></pre>
  
  <p>Thanks</p>