public void fileWriterType(string filePath, TypeOfOwnership type) { StreamWriter sw = new StreamWriter("DIR\\" + filePath + ".txt", false, System.Text.Encoding.UTF8); sw.WriteLine($"Вид продукции: {type.getTypeOfOwnership()}"); sw.Close(); }