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:
usally, when use like this:Code:The file need to load 1 2 3 4
it will stop at "The" and will load the word "file" to the next character variable.Code:char a[100]; Load >> a;
Please help me. Thanks