From: Luke Cowell Date: 2009-04-15T00:01:18+09:00 Subject: Re: how to know if completely donwloaded Dy Dymy wrote: > guy please help me... i cant detect if internet connection cuts the file > will be corrupted... It appears that you have already downloaded the files and are attempting to validate them after the download process is complete. I'd suggest a couple of different strategies: one would be to have the download process raise an error if the download does not complete and the other would be to check the files against the server you are downloading from. If possible use an md5 checksum and otherwise you could check the size. If you were downloading zip, gzip files or some other compressed format they will usually have built in checksumming, so you could verify the file that way. Other file formats might have ways of being validated too. Luke -- Posted via http://www.ruby-forum.com/.