int note1in()
{
system("cls");
string a;
ifstream note1 ("note1.txt");
while (!note1.eof() )
{
getline (note1, a);
cout << "The note reads: " << endl << a << endl << endl;
}
note1.close();
system("pause");
note1out();
}
int note1out()
{
string a;
cout << "Begin re-writing the note... " << endl;
getline (cin, a);
_sleep(1500);
ofstream note1 ("note1.txt");
note1 << a;
note1.close();
cout << "The note has been saved..." << endl;
_sleep(1500);
Notes();
}
Vipervneom9 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.