title: How to Read 1st line of a file with BufferedReader?
body: <p>I was experimenting with BufferedReader to read 1st line file to a string. How do I do this? Also how can I read an entire file to a string? How to read a particular line like <code>readline(int line)</code> without iterating through the previous lines?</p>
  
  <pre><code>File namefile = new File(root, ".name");
  FileReader namereader = new FileReader(namefile);
  BufferedReader in = new BufferedReader(namereader);
  </code></pre>