You'll have to do something more complicated than just summing the bytes in a file, otherwise for any given number, you don't know the file length, plus there will be many possible resulting files that will sum to make your given number, e.g. a file consisting of a single byte of value 80 will give the same sum as a file of two bytes where both bytes are 40Essentially though, you're just talking about a manner of file compression





Essentially though, you're just talking about a manner of file compression 



















Reply With Quote