Mittal Joshi

Mittal Joshi

  • NA
  • 34
  • 0

count no of characters from string

Sep 17 2009 4:29 AM

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)