Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
C++ fstream help
I've been trying to fix this problem for a couple hours now, and have no idea what to do. I'm trying to read a single string from a text file into an array (has to be in a char array). This is what the code snippet looks like:
char a[20];
ifstream file;
file.open("test.txt");
file>>a;
file.close();
cout << a;
...
the problem is that, the text file has a space in it, and everytime it gets to the space it stops reading leaving me with only the first word. Anyone have any suggestions?