title: Reading a remote file using Java
body: <p>I am looking for an easy way to get files that are situated on a remote server. For this I created a local ftp server on my Windows XP, and now I am trying to give my test applet the following address:</p>
  
  <pre><code>try
  {
      uri = new URI("ftp://localhost/myTest/test.mid");
      File midiFile = new File(uri);
  }
  catch (Exception ex)
  {
  }
  </code></pre>
  
  <p>and of course I receive the following error:</p>
  
  <blockquote>
    <p>URI scheme is not "file"</p>
  </blockquote>
  
  <p>I've been trying some other ways to get the file, they don't seem to work. How should I do it? (I am also keen to perform an HTTP request)</p>