getline from file question

Does getline() function used on a '.txt' file remove whitespace from the line. i dont think it does but not sure...

thanks
It simply copies everything except the line ending character (which is discarded) into the string you pass.
ok, thats what i thought...um, instead of a string can you use getline() with an char array?

EDIT:: an array of strings?
Last edited on
Topic archived. No new replies allowed.