Java: How to convert a File object to a String object in java?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/326390/how-to-create-a-java-string-from-the-contents-of-a-file">How to create a Java String from the contents of a file</a>  </p>
</blockquote>



<p>I have a html file which I want to use to extract information. For that I am using Jsoup.
Now for using Jsoup, I need to convert the html file into a string. How can I do that?</p>

<pre><code>File myhtml = new File("D:\\path\\report.html")';
</code></pre>

<p>Now, I want a String object that contains the content inside the html file.</p>
