What is the efficient way to parse through a large delimited string so that I can access just one element from the delimited set without having to store the other substrings involved?
example string: "1,2,3,4,....,21,22,23,24" and my goal is to extract just the element 22 without having to store the rest of the numbers as done when using the Split() method.
Not a duplicate of this.
Not a duplicate of the one suggested either. In my case, I am particularly looking for an exact element in a finite string. This is much different to the other case where they try to extract the first few occurrences from an infinitely long string. My problem seems much simpler. I don't want to store any extra tokens/array elements other than the one element I am interested in.