Handy function for writing file
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 1 Aug 2020 07:48:07 +0000 (10:48 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 1 Aug 2020 07:48:07 +0000 (10:48 +0300)
src/main/java/eu/svjatoslav/commons/file/IOHelper.java

index e23feae..01c0837 100755 (executable)
@@ -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));
+    }
+
 }
 }