...
Code Block | ||||
---|---|---|---|---|
| ||||
public void createFile(String filename) throws FileNotFoundExceptionIOException{ OutputStream out = new FileOutputStream(filename, true); if (!new File(filename).createNewFile()) { // File cannot be created...handle error } else { OutputStream out = new FileOutputStream(filename); // Work with FILE } } |
...