How to make sure that your files will be read on both linux/windows
<p>I'm currently using this to read my files as inputStream, it works under windows, will this work in LINUX?</p>

<pre><code>File file = new File(currentDirectory.getCanonicalPath().toString() + "\\" + "myfile.txt");
</code></pre>

<p>If not what is the right way to read files, this "<code>\\</code>" looks kind of "fishy"</p>

<p>ADD-ON </p>

<p>I forgot this :</p>

<pre><code>File currentDirectory = new File(".");
</code></pre>
