LOl..you are right Erel...When passing the code from my project to this sample, I actualy forgot to copy the lines to read the files...It's always an extra work, as I try to translate var names into english so that they have some meaning to others.
bytesOriginal=Bit.InputStreamToBytes(originalFile)
bytescopy=Bit.InputStreamToBytes(copiedFile)
but the time it takes its the same, obviously.
I like the progress bar...this is a backup program I'm trying to do..it is working OK (apart from this slow thing)...and it can be a file of 2MB or it may happen to be a much bigger file.
Also I think that if I try to compare 2 files with say 400MB each..this method will fail due to memory problems, unless I read them by chunks, wich is the path I will have to pursuit.
Many thanks for your trouble.