string[] text = new string[2]; When debugging, it throws the following error: "Unhandled type exception" System.ArgumentOutOfRangeException "in mscorlib.dll
Additional Information: Length cannot be less than zero. "
int first = Page.IndexOf(leftText) + leftText.Length; int last = Page.IndexOf(RightText, first); string[] text = new string[2]; text[0] = Page.Substring(first, (last - first)); text[1] = Page.Remove(0, last);
int first = Page.IndexOf(leftText) + leftText.Length; int last = Page.IndexOf(RightText, first); string[] text = new string[2]; text[0] = Page.Substring(first, (last - first)); text[1] = Page.Remove(0, last);- Nikolay