Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1.  
  2. public static void writeProvision (Context context, String provision){
  3.  
  4. String path = context.getFilesDir().getAbsolutePath();
  5. File file = new File(path + "/provisionFile.txt");
  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