oh well hes probably doing it that way cause this is only a second semester class and a logic class at that so hes probably just still trying to get our heads thinking in the right direction and coming from someone who has had the misery/joy of self teaching having to think out logic in big dosses is painful so probably just trying to keep it simple at first.

hes bald so i doubt hes fallen into traps lol


so basically eof can be bad because if something has whitespace it takes that as eof when its not really the eof? so just mannually put a file >> file[i++] and see if it returns anything anything at all that way catching the whole line? which if so then how does it know when to read another input line?

cause eof reads another line at a space so when would while(file >> data[i++]) know when to read another line of input??? i read that link but didnt completely get though sorta kinda? eof causes a of by 1 error cause of that input space thing but didnt quite catch onto how the cin way knows a new line of input?