code: public static File newFile(String fileName) {
  		File file = new File(fileName);
  		if(file.exists())
  			file.delete();
  		return file;
  	}
docs: Returns a new File object from the given fileName and deleting the file if already exists.