How to cut a string variable into more?
Posted
by DanSogaard
on Stack Overflow
See other posts from Stack Overflow
or by DanSogaard
Published on 2010-03-18T16:47:08Z
Indexed on
2010/03/18
16:51 UTC
Read the original article
Hit count: 282
So I've a string:
string x = "DR\nDC\nDD";
I want to get each line in a separated variable like this:
string y1 = "DR";
String y2 = "DC";
String y3 = "DD";
How can I do that?.
© Stack Overflow or respective owner