#include <iostream>
#include <fstream>
using namespace std;
int main() {
char string[80];
int i;
char ch;
float f;
cout << "Please enter a file to open: ";
cin.getline (string, 80, '\n');
ifstream infile(string);
infile.open(string, ios::in);
if (!infile) {
cout << "Cannot open file\n";
cin.get();
return 1;
}
infile >> f;
infile >> ch;
infile >> i;
cout << ch << " " << i << " " << f << '\n';
infile.close();
cin.get();
return 0;
}