private ReadUntil ( string end, |
||
end | string | |
reader | ||
lines | List |
|
Résultat | int |
int ReadUntil (string end, StreamReader reader, List<string> lines)
{
int ret = -1;
while (reader.Peek () >= 0) {
string s = GetNextLine (reader, lines);
if (String.Compare (s.Trim (), end, true) == 0)
return (lines.Count - 1);
}
return ret;
}