Created
October 19, 2015 15:51
-
-
Save Ziiweb/ae8aa0bab38a0c5f2c09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File aux = context.getFilesDir(); | |
String filename = "/myfile"; | |
String string = "Hello world!"; | |
FileOutputStream outputStream; | |
try { | |
File ins = new File(context.getFilesDir(), "INSTALLATION"); | |
FileOutputStream out = new FileOutputStream(ins); | |
out.write(string.toString().getBytes()); | |
out.close(); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment