public class Files extends Object
| Constructor and Description |
|---|
Files() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFile(File file,
String content)
like writefile, but always deletes any existing file
|
static void |
mkdir(File path) |
static String |
readContent(File file) |
static void |
writeToFile(File file,
String content,
boolean append) |
public static void createFile(File file, String content) throws IOException
file - content - IOExceptionpublic static void writeToFile(File file, String content, boolean append) throws IOException
IOExceptionpublic static String readContent(File file) throws IOException
IOExceptionpublic static void mkdir(File path)
Copyright © 2015. All rights reserved.