Beispiel #1
0
 /// <summary>
 /// Saves an <see cref="FDSSection"/> into a file. Throws normal exceptions on any issue.
 /// NOTE: May be removed or switched for journalling logic in the future.
 /// </summary>
 /// <param name="section">The data to save.</param>
 /// <param name="fname">The name of the file to read.</param>
 public static void SaveToFile(this FDSSection section, string fname)
 {
     File.WriteAllBytes(fname, StringConversionHelper.UTF8Encoding.GetBytes(section.SaveToString()));
 }