public class FileExt
extends java.lang.Object
Constructor and Description |
---|
FileExt() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
readFile(java.io.File file,
java.lang.String arg)
Reads the file into a single string, which is null on error.The
arg argument is just so we can overload based on return
type. |
static java.lang.String[] |
readFile(java.io.File file,
java.lang.String[] arg)
Reads the file into a string array, without end-of-line characters
(sequences).
|
static java.lang.String |
readFile(java.lang.String fileName,
java.lang.String arg)
Reads the file into a single string, which is null on error.
|
static java.lang.String[] |
readFile(java.lang.String fileName,
java.lang.String[] arg)
Reads the file into a string array, without end-of-line characters
(sequences).
|
public static java.lang.String readFile(java.lang.String fileName, java.lang.String arg)
arg
argument
is just so we can overload based on return type.public static java.lang.String[] readFile(java.lang.String fileName, java.lang.String[] arg)
arg
argument is
just so we can overload based on return type.public static java.lang.String readFile(java.io.File file, java.lang.String arg)
arg
argument is just so we can overload based on return
type.public static java.lang.String[] readFile(java.io.File file, java.lang.String[] arg)
arg
argument is just so we can overload
based on return type.