| Lesson 8 | Working with files |
| Objective | Explore how to move, rename, and delete files. |
public boolean createNewFile() throws IOException // Java 2
File f = new File("output.dat");
boolean success = f.createNewFile();
if (success) {
//...
}
else {
//...