I have a URL i.e http://downloadplugins.verify.com/Windows/SubAngle.exe . If i paste it on the tab and press enter then the file (SubAngle.exe) is getting downloaded and sav
easy and general function that im using:
import org.apache.commons.io.FileUtils;
public static void downLoadFile(String fromFile, String toFile) throws MalformedURLException, IOException {
try {
FileUtils.copyURLToFile(new URL(fromFile), new File(toFile), 60000, 60000);
} catch (FileNotFoundException e) {
e.printStackTrace();
System.out.println("exception on: downLoadFile() function: " + e.getMessage());
}
}