How to add a certain charachter to each letter of a string

  • Thread starter Thread starter Helios Lucifer
  • Start date Start date
H

Helios Lucifer

Guest
I have an string, (for eg input1) which contains some text, I would like to add a character (eg ".") to every letter of the string for a certain number.


// user insetrs text

string usertext = textbox1example.text;

//user specifies count of combination

string usercount = textbox2example.text;

//the problem I have, if usertext contains "hello" and

usercount contains 7 the expected result will be h.ello , he.llo , hel.lo, hell.o

h..ello, he..llo, hel..lo.

Continue reading...
 
Back
Top