Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void addnum:: add(string name)
- {
- fstream fin;
- //ofstream out;
- fin.open("phonebook.csv",ios::in | ios::app);
- //out.open("Edited.csv",ios::out);
- vector<string>row;
- string line,word,temp,num;
- cout<<"Enter the Number"<<endl;
- cin>>num;
- fin<<name<<","<<num<<endl;
- fin.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment