public class SimpleFile extends Object
Constructor and Description |
---|
SimpleFile() |
Modifier and Type | Method and Description |
---|---|
static void |
createParentFoldersIfNotExist(String file) |
static boolean |
isYounger(String file1,
String file2)
Return true if file1 is younger than file2, meaning it was last modified after file2.
|
static List<String> |
read(String filename) |
static String |
readAsString(String filename) |
static String |
readAsString(String filename,
String newLineString) |
static List<String> |
readFile(File file) |
static void |
write(String content,
String file) |
public static void createParentFoldersIfNotExist(String file)
public static List<String> readFile(File file) throws IOException
IOException
public static List<String> read(String filename) throws IOException
IOException
public static String readAsString(String filename, String newLineString) throws IOException
IOException
public static boolean isYounger(String file1, String file2) throws IOException
IOException
Copyright © 2016. All rights reserved.