public final class VCSTextFileUtils
extends java.lang.Object
Utility class for accessing and writing simple text files.
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
readTextFile(java.net.URL url)
Reads a text string from a local file.
|
static void |
writeTextFile(java.net.URL url,
java.lang.String contents)
Writes the given text string to a local file.
|
public static final void writeTextFile(java.net.URL url,
java.lang.String contents)
throws java.io.IOException
url - the location of the local file to write.contents - the data to write to the local file. (null-capable)java.io.IOExceptionpublic static final java.lang.String readTextFile(java.net.URL url)
throws java.io.IOException
url - the location of the local file to read.java.io.IOException