public class FileUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Charset |
ENCODING
Encoding of loaded files
|
Constructor and Description |
---|
FileUtils() |
public static final Charset ENCODING
public static List<String> readFile(Path filePath) throws IOException
filePath
- path to the file to be readIOException
- if there was a problem during reading the filepublic static void writeFile(List<String> lines, Path filePath) throws IOException
lines
- list of lines to be written in the filefilePath
- path to the file to be writtenIOException
- if there was a problem during accesing the fileCopyright © 2013. All Rights Reserved.