How do you create file with a variable in C++?
<p>I was wondering how to put a variable where <code>"example.txt"</code> is below:</p>

<pre><code>ofstream file;
file.open ("example.txt");
</code></pre>
