Используйте это:
Scanner txtscan = new Scanner(new File("filename.txt"));
while(txtscan.hasNextLine()){
String str = txtscan.nextLine();
if(str.indexOf("word") != -1){
System.out.println("EXISTS");
}
}
Вы также должны импортировать Bootstrap в свой компонент:
import 'bootstrap';