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