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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

strings(seperation) 6
Join an ArrayList 3
Linq. Select 3
Save data from Notebook: copying to the USB stick using Linux and the command line 0
(Collection) 1
List 2
Random 6
How to make a fancy format 4

Back
Top