daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class FileUtils {
  2.  
  3.     public void createFileWithContent(File filename, String content) throws IOException  {
  4.        
  5.             FileWriter fileWriter = new FileWriter(filename);
  6.             BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
  7.            
  8.             bufferedWriter.write(content);
  9.            
  10.             bufferedWriter.flush();
  11.             bufferedWriter.close();
  12.     }
  13.    
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top