Hi guys, i just wonder that there is any code that ignore the space when loading a file using fstream, except when it enter new line.

ex:
this is what the text file contain:

Code:
The file need to load
1
2
3
4
usally, when use like this:
Code:
char a[100];
Load >> a;
it will stop at "The" and will load the word "file" to the next character variable.

Please help me. Thanks