From b46b1b0c0ded3377fb44d88fe4105ffebc8ee152 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sat, 1 Aug 2020 10:48:07 +0300 Subject: [PATCH] Handy function for writing file --- src/main/java/eu/svjatoslav/commons/file/IOHelper.java | 5 +++++ 1 file changed, 5 insertions(+) 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)); + } + } -- 2.20.1