title: Finding token in file using java
body: <p>i am trying to read a text file. i have to find a particular token "STUDENT | ITEMS |" in that file. then i have to discard next eight lines from that file and read the 9th line to get desired input. now i have some confusions. which one to use to read the file? scanner class or buffer reader? which one is better in performance issue? i also see use of datastream and inputstream. so i a little bit confused.
  then what to use to find the token? regex parsing or token parsing? will i use split() to split a line or use nextToken() for this when parsing a line like these:
   "ID     |Name | value |" to get id name and value. please help.</p>