File file=new File("yourfilename");
int ch;
FileInputStream in=new FileInputStream(file);
ch=in.read;
String content="";
while(ch!=-1)
{
  content+=(char)ch;
}
//if you want to search "your name"
int pos=content.indexOf("your name");
//pos is the position of "your name" in file