copy file

I need to copy a file (its a url from a website) to a file on my computer. I am trying to figure out how to do this.

I found code for copying it with bytes but that messes up the file somewhat.... I want an exact copy of the original file.

code is highly appreciated.

thanks,

[309 byte] By [vbeir] at [2007-9-30 5:12:39]
# 1
A very popular item that gets discussed here on a regular basis: http://onesearch.sun.com/search/developers/index.jsp?qt=ftp&col=devforums&col=javatecharticles&col=javatutorials&col=devarchive&col=devall
ChuckBing at 2007-7-1 16:22:46 > top of Java-index,Administration Tools,Sun Connection...