X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Ffile%2FIOHelper.java;h=01c08370a6a810fea4d85c12429fda706760d24d;hb=b46b1b0c0ded3377fb44d88fe4105ffebc8ee152;hp=e23feaeb4f6cd202aa07671dece09a11f8f6bede;hpb=49c08724984dbcc1bb45fc0c8a4cf3bf7b627178;p=svjatoslav_commons.git 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)); + } + }