am looking for a really simple (and compatable) way of downloading a file from the net - i also want my app not to run the next line of code until this has happened

i have seen api to do this before but cant seem to find any atm

thanks in advance
Kris Bennett