This is perhaps too easy but I do not know from where to start.
I have stings like "'02HEX'aspoodsasas'CR''LF'"
Now I want to extract stings between char(02) and char(12);
Until now I did following
string s = string.Format("{0}{1}{2}", (char)02, "12345678", (char)12);
int chindx = s.IndexOf((char)02)+1;
s = s.Substring(chindx, 8)
My problem is how to determine length of my substring if I know position of start character and position of my ending character in my string