How to make a file name and a set extension
<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;

using namespace std;
int main()
{
  string name;
  cout&lt;&lt;"What would you like new html file to be named?"&lt;&lt;endl;
  getline(cin,name);
  cout&lt;&lt;"Creating New Html File...Moment."&lt;&lt;endl;
  ofstream myfile (name);
  if(myfile.is_open())
  {                
  }
}
</code></pre>

<p>I need to make myfile with a .html extension can somebody tell me how or write me a code?</p>
