Join command

  • Thread starter Thread starter juli
  • Start date Start date
J

juli

Hello!
I want to use the join command in String and to seperate between each
one of the elements with new line or enter :
How do I write this command in order to do it:
string exc_str=String.Join("?",exc_string);

what do I write instead of the question mark(if it's possible)?
 
Hi,

Try passing Environment.NewLine constant or "\n\r" or something like that.
 
Hi,

You should use Environment.NewLine

also remember that the second argument of Join is a string[]

Cheers,
 
Back
Top