Let's say I have a string "file1\nfile2\nfile3".
I want to print out:
file1
file2
file3
How can I do this without using a string stream?
Note: When I say string, I mean the string object in C++.
I'm sorry if this is a stupid question; I'm completely new to C++;