#include #include using namespace std; int main() { ifstream inputFile; string name; inputFile.open("friends.txt"); cout << "Reading data from the file.\n"; inputFile >> name; // Read name 1 from the file cout << name << endl ; inputFile >> name ; // Read name 2 from the file cout << name << endl ; inputFile.close() ; return ( 1) ; }