how to get directory using file object?
<pre><code>File file=new File("c:\\temp\\java\\testfile");
</code></pre>

<p><code>testfile</code> is a file,it's maybe not exists,
 i want to get directory <code>c:\\temp\\java\\</code> using <code>file</code> object</p>

<p>how to do it?</p>

<p>thanks :)</p>
