How to combine variable with string value
<p>I want to combine variable with string value in (ofstream) file path </p>

<p><strong>Example:</strong></p>

<pre><code>long phNumber;
char bufPhNumber[20];
ofstream ifile;

cout &lt;&lt; "Phone Number: ";
cin &gt;&gt; phNumber;
itoa(phNumber,bufPhNumber,20);

ifile.open("c://" + bufPhNumber + ".txt",ios::out);  // error in this line
</code></pre>

<p>How to combine  this variable (bufPhNumber) with that strings ( "c://" +  variable here + ".txt" )</p>
