title: BufferedReader pointer
body: <p>I have the following code but I don't understand how I can reset the pointer to the starter position:</p>
  
  <pre><code>BufferedReader inp=new BufferedReader(new FileReader(file));
  Scanner leggi=new Scanner(inp);
  for(int i=0;i&lt;nwords;i++){
    while(leggi.hasNext()) 
      if(leggi.next().equals(args[i+2])) 
        occorrenze[i]=occorrenze[i]+1;
  }
  inp.close();
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>inp.mark(0);
  inp.reset();
  </code></pre>
  
  <p>with no results.</p>