public static IEnumerable<string> ReadAllLines(this Stream s) { string line; using (var sr = new StreamReader(s)) while ((line = sr.ReadLine()) != null) yield return line; }