Use split()
string name= "LUKE CARROLL";
string[] tmp = name.Split(' ');
string FirstName = tmp [0];
string LastName = tmp [1];
1
solved Split string into two separate strings [duplicate]
Use split()
string name= "LUKE CARROLL";
string[] tmp = name.Split(' ');
string FirstName = tmp [0];
string LastName = tmp [1];
1
solved Split string into two separate strings [duplicate]