1 package com.github.searls.jasmine.io; 2 3 import org.apache.commons.io.FileUtils; 4 5 import java.io.File; 6 import java.io.IOException; 7 8 public class FileUtilsWrapper { 9 public String readFileToString(final File file) throws IOException { 10 return FileUtils.readFileToString(file, "UTF-8"); 11 } 12 13 public void writeStringToFile(final File file, final String contents) throws IOException { 14 FileUtils.writeStringToFile(file, contents, "UTF-8"); 15 } 16 }