2
Answers

count no of characters from string

Mittal Joshi

Mittal Joshi

15y
3.8k
1

startIndex = k.IndexOf(
" 43 ");
string test3 = k.Substring(startIndex, 32);
startIndex1 = k.IndexOf(
" 54 ");
string test4 = k.Substring(startIndex, 55);
how to count no of characters between 2 indexes(startIndex and startIndex1) from a string in c#?
Answers (2)