To figure out what happens try


inputFile>>input;
cout << input << endl;


Then consider using something like getline()