#include <iostream>
#include <fstream>
using namespace std;
int main()
{
string name;
cout<<"What would you like new html file to be named?"<<endl;
getline(cin,name);
cout<<"Creating New Html File...Moment."<<endl;
ofstream myfile (name);
if(myfile.is_open())
{
}
}
I need to make myfile with a .html extension can somebody tell me how or write me a code?