in reply to Re: Difficulty restraining read function to 32 bits
in thread Difficulty restraining read function to 32 bits

Thanks for the quick reply ikegami. I made the replacement, but the checksum that I'm getting is just a bit shy (1 million short) of the checksum that I am trying to get (I already know the checksum). Lets say that there are 31 bits left over in the file, would the script read it and add it? or would it be 0ed out? Thanks again for your help.
  • Comment on Re^2: Difficulty restraining read function to 32 bits

Replies are listed 'Best First'.
Re^3: Difficulty restraining read function to 32 bits
by ikegami (Patriarch) on Jul 16, 2009 at 14:44 UTC

    Lets say that there are 31 bits left over in the file

    Let's say 24 bits (3 bytes). It's "hard" to store a fraction number of a bytes in a file.

    read would return three bytes instead of four for the last read.

    jwkrahn points out a real problem too.