vedran

vedran

  • NA
  • 16
  • 0

String manipulation in arrays

May 25 2010 4:13 AM
Hello,

I was wondering how to solve this small problem.

I have string
  string test = "hello";
string delim = ",";


I want to insert a "," between every letter in my string, so the end result will be:

h,e,l,l,o,

I tried using arrays, but every time I hit a brick wall.

I tried setting length of the array with;
 string[] jao = new string[test.Length]; 
and that works.

I know that somehow I need to fill that array with test string. and insert delim in it.

Can someone please help me with this issue?


Thank you so much.

Answers (2)