Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void writeProvision (Context context, String provision){
  2.  
  3.        
  4.         File file = new File(Environment.getExternalStorageDirectory()+File.separator + "myDir" + File.separator() + "provisionFile.txt");
  5.  
  6.         try {
  7.             FileWriter out = new FileWriter(file);
  8.             out.write(provision);
  9.             out.close();
  10.         } catch (IOException e) {
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement