List of utility methods to do FileOutputStream Create
void | writeFileWithParent(String filename, String contentStr, String charset) write File With Parent File file = new File(filename); File parent = file.getParentFile(); if (!parent.exists()) { parent.mkdirs(); byte[] content = contentStr.getBytes(charset); FileOutputStream fos = new FileOutputStream(file); fos.write(content); ... |