Switched to stream writer.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user