#include <iostream> #include <conio.h> #include <string> #include <fstream> using namespace std; class notepad { string A; public: void newnotpad() { char name[100]; cout<<"Enter Name/Path of File: "; cin>>name; cout<<endl; cout<<"Enter Text to New Notepad: "<<endl<<endl; getline(cin,A); myfile.open(name); myfile<<A; myfile.close(); } }; int main() { notepad x; x.newnotpad(); }
cin.ignore();
cin >> name;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)