When we use cin>>input;, space is used for terminating statement, however if we use the following code
cin>>input;
ifstream fin("myfile.dat")