MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / WriteFSTGXmlType

Method WriteFSTGXmlType

TexturedFontEditor/Helper.cs:141–167  ·  view source on GitHub ↗
(XmlDocument XmlDoc, string TargetFile)

Source from the content-addressed store, hash-verified

139 }
140
141 public static void WriteFSTGXmlType(XmlDocument XmlDoc, string TargetFile)
142 {
143 FileStream tFile = new FileStream(TargetFile, FileMode.Create, FileAccess.Write, FileShare.Read);
144
145 try
146 {
147 XmlWriterSettings tSetting = new XmlWriterSettings();
148 tSetting.CloseOutput = false;
149 tSetting.Encoding = Encoding.UTF8;
150 tSetting.Indent = true;
151 tSetting.IndentChars = " ";
152 tSetting.NewLineOnAttributes = false;
153 tSetting.OmitXmlDeclaration = true;
154
155 XmlWriter tWritter = XmlWriter.Create(tFile, tSetting);
156
157 XmlDoc.Save(tWritter);
158 }
159 catch
160 {
161 tFile.Close();
162
163 throw;
164 }
165
166 tFile.Close();
167 }
168 }
169
170 public class PointFConverter : TypeConverter

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected