org.incava.io

Class FileExt

public class FileExt extends Object

Method Summary
static StringreadFile(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).
static StringreadFile(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).

Method Detail

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.

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.