How to format directory in android project folder as jvm can't see datass.txt or sometimes logcat says read only file...(i am putting datass.txt in main project root)
i am passing an array of strings and want to save it to a file datass.txt so i can retrieve data when internet is not connected
public void FileWrite(String[] temp) throws IOException{
File m = new File("datass.txt");
final String[] descs = temp ;
DataOutputStream out = new DataOutputStream(new
BufferedOutputStream(
new FileOutputStream(m)));
for (int i = 0; i < 31; i ++) {
out.writeUTF(descs[i]);
}
}