How can I make a vector of type strings while reading from a file?

Hey guys. I am trying to read in words from a file, and I want each one to be an element of a vector. For example, if the file contains 3 words: red, white, blue (in that order), I want vector[0] = red, vector[1] = white, vector[2] = blue. How can I do this? Thanks!
It would depend on how they are in the file...is it like this:

red
white
blue


or

red white blue

or what?
Last edited on
Hey firedraco. The file looks like:

red
white
blue
Topic archived. No new replies allowed.