Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String path = context.getFilesDir().getAbsolutePath();
- File file = new File(path + "/abikor.txt");
- int length = (int) file.length();
- byte[] bytes = new byte[length];
- FileInputStream in = new FileInputStream(file);
- try {
- in.read(bytes);
- } finally {
- in.close();
- }
- String contents = new String(bytes);
Add Comment
Please, Sign In to add comment