From: Svjatoslav Agejenko Date: Sat, 1 Aug 2020 07:48:07 +0000 (+0300) Subject: Handy function for writing file X-Git-Tag: svjatoslavcommons-1.8~13 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=b46b1b0c0ded3377fb44d88fe4105ffebc8ee152;p=svjatoslav_commons.git Handy function for writing file --- diff --git a/src/main/java/eu/svjatoslav/commons/file/IOHelper.java b/src/main/java/eu/svjatoslav/commons/file/IOHelper.java index e23feae..01c0837 100755 --- a/src/main/java/eu/svjatoslav/commons/file/IOHelper.java +++ b/src/main/java/eu/svjatoslav/commons/file/IOHelper.java @@ -115,4 +115,9 @@ public class IOHelper { } } + public static void saveToFile(final File file, final String content) + throws IOException { + saveToFile(file, content.getBytes(UTF_8)); + } + }