Created
October 12, 2014 16:57
-
-
Save breeze4/a2e1dfac14aa47186c99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String s = Paths.get("").toAbsolutePath().toString(); | |
String newJsonFile = s.replace("\\", "/") + "/src/test/resources/" + jsonFile; | |
try (Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newJsonFile), "utf-8"))) { | |
writer.write(json); | |
} catch (IOException ex) { | |
// handle me | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment