From 5c3e060d146e1dee8f3f9764165dba055b1e26a4 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sat, 29 Dec 2018 01:09:49 -0600 Subject: [PATCH] Switched to stream writer. --- .../NinePatchTools/NinePatchCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecrownedAthenaeum.ConsoleTools/NinePatchTools/NinePatchCommand.cs b/RecrownedAthenaeum.ConsoleTools/NinePatchTools/NinePatchCommand.cs index 10fb171..d07960b 100644 --- a/RecrownedAthenaeum.ConsoleTools/NinePatchTools/NinePatchCommand.cs +++ b/RecrownedAthenaeum.ConsoleTools/NinePatchTools/NinePatchCommand.cs @@ -41,7 +41,7 @@ namespace RecrownedAthenaeum.Tools.NinePatchTools NinePatchData npData = new NinePatchData(Path.GetFileName(imagePath), leftBound, rightBound, bottomBound, topBound); string serialized = JsonConvert.SerializeObject(npData, Formatting.Indented); - using (StringWriter stringWriter = new StringWriter()) + using (StreamWriter stringWriter = new StreamWriter(outPath + ".9p")) { stringWriter.WriteLine(serialized); }