When reading in strings from a file is it alright if the strings are on separate lines? like if i was doing:


string str1, str2, str3;

ifstream file("foobar.txt");

file >> str1 >> str2 >> str3;
cout << str1 << str2 << str3

and foobar.txt reads

stringone stringtwo (a new line)
stringthree

would there be any problem due to the newline?