hello guys
i want to write a code to create a file with a name that chosen by the user like
[code=cpp]
int main()
{
string name;
cout<<"enter the file name:";
cin>>name;
ifstream b (name);
return 0;
}
[/code]
is it possible to do so?
i want to write a code to create a file with a name that chosen by the user like
[code=cpp]
int main()
{
string name;
cout<<"enter the file name:";
cin>>name;
ifstream b (name);
return 0;
}
[/code]
is it possible to do so?
Comment