title: Download file from URL to FOLDER
body: <pre><code>         java.io.BufferedInputStream in = new java.io.BufferedInputStream(new
  
                               java.net.URL(args[1].toString()).openStream());
                               java.io.FileOutputStream fos = new java.io.FileOutputStream("WorldEdit/schematics/"+args[2].toString());
                               java.io.BufferedOutputStream bout = new BufferedOutputStream(fos,1024);
                               byte data[] = new byte[1024];
  
                               while(in.read(data,0,1024)&gt;=0)
                               {
                               bout.write(data);
                               }
                               bout.close();
                               in.close();
                               }
  </code></pre>
  
  <p>I want this to download a file from a url, and put it into a folder. This program will be in a folder named "plugins" where I want to put the downloaded file is in "plugins/WorldEdit/schematic".
  Doesn't seem to work. Any suggestions? </p>