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();
}

Is there something wrong with the code? You don't need to call endl but rather do like this: cout << a << "\n\n";

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.