public static FileInfo Write(this MenuSuite menuSuite, string fileName) { using (var streamWriter = new StreamWriter(fileName, false, Encoding.GetEncoding("ibm850"))) { menuSuite.Write(streamWriter); } return(new FileInfo(fileName)); }
public static void Write(this MenuSuite menuSuite, TextWriter textWriter) => menuSuite.Write(new CSideWriter(textWriter));
public static FileInfo WriteToFolder(this MenuSuite menuSuite, string folderName) => menuSuite.Write(Path.Combine(folderName, $"men{menuSuite.ID}.txt"));