I am using Visual Studio 2010 C++ and I have a long string with multiple paths like this.
C:\eula0.txt
C:\eula1.txt
C:\eula2.txt
C:\eula3.txt
C:\eula4.txt
all above file paths are in a single string "S". There is a new line char "\n" between each path. I want to extract each path as a single string path.
The final output should be like this.
string s0 = C:\eula0.txt
string s1 = C:\eula1.txt
string s2 = C:\eula2.txt
string s3 = C:\eula3.txt
string s4 = C:\eula4.txt
How can I do this. Please help me. Thanks.