At the moment i am making a game that requires reading from file and then outputting that. At the moment I cannot output anything after the first space in a line. For example:
char data[50];
fin>>data;
cout<<data;
Here is the file:
This is the data
here is what the program displays:
this
what can i do to fix this?