public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
readFileToString(File inputFile)
read the given input file to a String
|
static List<String> |
readLines(File inputFile)
read lines from the given inputFile
|
static void |
writeStringToFile(File file,
String text)
write the given String to a the given file
|
public static String readFileToString(File inputFile) throws IOException
inputFile - IOExceptionpublic static List<String> readLines(File inputFile) throws Exception
inputFile - ExceptionCopyright © 2017. All Rights Reserved.