Switched to stream writer.

This commit is contained in:
Harrison Deng 2018-12-29 01:09:49 -06:00
parent 81801746e1
commit 5c3e060d14

View File

@ -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);
}