public class FileUtils
extends java.lang.Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
readTxtFile(java.lang.String filePath)
Reads a text file.
|
static java.util.Collection<java.lang.String> |
readTxtFile(java.lang.String filePath, java.lang.String split)
Reads a text file and returns it in tokens split by the specified string.
|
public static java.lang.String readTxtFile(java.lang.String filePath) throws NFEIOException
filePath
- file path to read.NFEIOException
- When there is a problem reading the file.public static java.util.Collection<java.lang.String> readTxtFile(java.lang.String filePath, java.lang.String split) throws NFEIOException
filePath
- file path to read.split
- string to split the file.NFEIOException
- When there is a problem reading the file.