Make sure that all bytes are read from the file