Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
String manipulation in arrays
vedran
May 25 2010 4:13 AM
2.5k
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
create a backup & restore a backup at Run time in c# Win App.
who change the background color of a list box ?