public class ScriptUtil extends Object
| Constructor and Description |
|---|
ScriptUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
readAsString(File file)
Reads the contents of a file into a String.
|
static void |
writeString(File file,
String content)
Writes a String to a file creating the file if it does not exist.
|
public static String readAsString(File file) throws IOException
file - the file to read, must not be nullnullIOExceptionpublic static void writeString(File file, String content) throws IOException
file - the file to writecontent - the content to write to the fileIOExceptionCopyright © 1999–2014 CodeLutin. All rights reserved.