I´ve got a textfile, where every line is separated with \n
an every value in a row is separated by \t
.
StreamReader sr = new StreamReader(dlg.FileName);
String ganzes = sr.ReadToEnd();
String[] allezeilen = ganzes.Split('\n');
string[] ssa = allezeilen[i].Split('\t');
foreach (string h in ssa)
{
String verwendungszw = h.Contains("Verwendungszweck");
}
Now, in the foreach loop, I try to find the entry in ssa that contains "Verwendungszweck"
. Ok, that is easy. But I don´t need the entry with "Verwendungszweck"
in it, I need the next one.
How can I get the next entry?