final String rootPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Slots/";
final File file = new File(rootPath);
file.mkdirs();
final File sdFile = new File(file, "Profile.txt");
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(sdFile));
bw.write(edit.getText().toString() + "\n");
bw.write("5000");
} catch (IOException e) {
}
In this code catches IOException, but file is created. Help please! Thanks all for answers.
0 comments:
Post a Comment