I was there a problem with my code, where I need a function to check whether there is the word I'm looking for or not in a file, if there is then it will return true, and if it fails will return false.
public void MyFunction(){
    String theWord = "Im very handsome";
    File theFile = new File("/home/rams/Desktop/tes.txt");
    if(CheckWord(theWord, theFile)){
      // so I will continue my coding, while I stuck :-(
    }
}
public void CheckWord(String theWord, File theFile){
   // what the code to search a word, which the word is variable theWord, the file is variable theFile
   // return true if in file there a word
   // return false if in file there not a word
   // thanks my brother
}
Thanks for advance.
 
     
     
    