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