How do I also read a new line using C++ >> operator?

```
ifstream input("doc.txt".c_str());
vector<string> contents;
while (input >> word) {
    contents.push_back(word);
}

```

For a file:

```
hello 
world
C++ is the best tool

```

should return

```
hello
\n
world
\n
C++
is
the
best
tool

```

P/S: this is a reduced problem from a bigger one. The way I parse file lead to this problem.