public final boolean stringInFile(final String text, final File file) throws FileNotFoundException {
		Scanner fileScanner = new Scanner(file);
		boolean found = false;
		while (fileScanner.hasNextLine()) {
		     if (text.equals(fileScanner.nextLine().trim())) {
		        found = true;
		        break;
		      }
		 }
		fileScanner.close();
		return found;
	}