//File: file_echo.cpp #include #include using namespace std; int main() { string filename, line; cout << "What is the name of your input file? "; cin >> filename; ifstream fin(filename.c_str()); getline (fin, line); cout << line << endl; }