Importing a txt file
How do I get this code to work? When I run the whole program I think it just exits because it never returns true.

    private boolean isExceptedWord(String str) {
		File file = new File("BoggleWords.txt");
		BufferedReader br;
		try {
			br = new BufferedReader(new InputStreamReader(new FileInputStream(
					file)));
		} catch (FileNotFoundException e1) {
			return false;
		}
		try {
			String line;
			while ((line = br.readLine()) != null) {
				if (str.equals(line))
					return true;
			}
		} catch (IOException e) {
			return false;
		} finally {
			try {
				br.close();
			} catch (IOException e) {
				return false;
			}
		}
		return false;

	}
Importing a txt file
===

How do I get this code to work? When I run the whole program I think it just exits because it never returns true.

    private boolean isExceptedWord(String str) {
		File file = new File("BoggleWords.txt");
		BufferedReader br;
		try {
			br = new BufferedReader(new InputStreamReader(new FileInputStream(
					file)));
		} catch (FileNotFoundException e1) {
			return false;
		}
		try {
			String line;
			while ((line = br.readLine()) != null) {
				if (str.equals(line))
					return true;
			}
		} catch (IOException e) {
			return false;
		} finally {
			try {
				br.close();
			} catch (IOException e) {
				return false;
			}
		}
		return false;

	}