I have a method that writes to a log file. If the file exists it should append to it, if not then I want it to create a new file.
if (!file.exists() &&am
//Create New File if not present if (!file.exists()) { file.getParentFile().mkdirs(); file.createNewFile(); Log.e(TAG, "File Created"); }