Constructor and Description |
---|
FileUtil()
Creates a new FileUtil object.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
fileContains(String aFileName,
String aSearchString)
Searches case sensitively, and returns true if the given SearchString occurs in the
first File with the given Filename.
|
static boolean |
fileContains(String aFileName,
String aSearchString,
boolean caseInSensitiveSearch)
Tests if the given File contains the given Search String
|
static ArrayList |
getFileContent(String fileName)
Gets the content from a File as StringArray List.
|
static void |
main(String[] args)
Test main
|
public FileUtil()
public static ArrayList getFileContent(String fileName) throws IOException
fileName
- A file to read from.IOException
public static boolean fileContains(String aFileName, String aSearchString)
aFileName
- A files nameaSearchString
- the string search forpublic static boolean fileContains(String aFileName, String aSearchString, boolean caseInSensitiveSearch)
aFileName
- A files nameaSearchString
- the String to search forcaseInSensitiveSearch
- If false the Search is casesensitiveWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses