He has been trying to deal with the problem for some time. More precisely, it tries to extract some information from a string:
string source = "1\t\r\nFIRST\t36\t4.976.501\t3.162\t3.121\t26\r\n2\t\r\n";
I would like the end result to look like this:
float firstNumber = 36;
float secondNumber = 4.976.501;
float thirdNumber = 3.162;
float fourthNumber = 3.121;
float fiftNumber = 26;
How could I get information from this string? I tried to use the string.substring method
int From = St.IndexOf("\t") + "\t".Length;
int To = St.LastIndexOf("\t"); // here's the problem
String result = St.Substring(pFrom, pTo - pFrom);
float firstNumber = float.Parse(result);
The problem is with multiple occurrences of the same / t. I don't know how I could specify multiple occurrences in string.Substring