org.incava.io
Class FileExt
public class FileExt
extends java.lang.Object
static String | readFile(File file, 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 String[] | readFile(File file, String[] arg) - Reads the file into a string array, without end-of-line characters
(sequences).
|
static String | readFile(String fileName, String arg) - Reads the file into a single string, which is null on error.
|
static String[] | readFile(String fileName, String[] arg) - Reads the file into a string array, without end-of-line characters
(sequences).
|
readFile
public static String readFile(File file,
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.
readFile
public static String[] readFile(File file,
String[] arg)
Reads the file into a string array, without end-of-line characters
(sequences). The arg
argument is just so we can overload
based on return type.
readFile
public static String readFile(String fileName,
String arg)
Reads the file into a single string, which is null on error. The returned
string will contain end-of-line characters. The arg
argument
is just so we can overload based on return type.
readFile
public static String[] readFile(String fileName,
String[] arg)
Reads the file into a string array, without end-of-line characters
(sequences). The array is null on error. The arg
argument is
just so we can overload based on return type.