======Метод File.ReadLines(String, Encoding)====== Считывает строки файла с заданной кодировкой. * **Пространство имен:** [[developers:references:system.io|System.IO]] * **Сборка:** mscorlib (в mscorlib.dll) =====Синтаксис===== public static IEnumerable ReadLines(string path, Encoding encoding) **Параметры** * //path// * Тип: [[developers:references:system.string|System.String]] * Файл, который нужно прочитать. * //encoding// * Тип: [[developers:references:system.text.encoding|System.Text.Encoding]] * Кодировка, примененная к содержимому файла. **Возвращаемое значение** * Тип: [[developers:references:system.collections.generic.ienumerable_1|System.Collections.Generic.IEnumerable]]<[[developers:references:system.string|System.String]]> * Все строки файла или строки, которые являются результатом запроса.