diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs
index 547e025e..7a90d89b 100755
--- a/SparkleLib/SparkleConfig.cs
+++ b/SparkleLib/SparkleConfig.cs
@@ -111,17 +111,13 @@ namespace SparkleLib {
if (string.IsNullOrEmpty (user_name))
user_name = "Unknown";
- TextWriter writer = new StreamWriter (FullPath);
- string n = Environment.NewLine;
-
- writer.Write ("" + n +
- "" + n +
- " " + n +
- " " + user_name + "" + n +
- " Unknown" + n +
- " " + n +
- "");
- writer.Close ();
+ File.WriteAllText (FullPath,
+ "" + n +
+ "" + n +
+ " " + n +
+ " " + user_name + "" + n +
+ " Unknown" + n + " " + n +
+ "");
SparkleHelpers.DebugInfo ("Config", "Created \"" + FullPath + "\"");
}