Use fseek with SEEK_SET instead of rewind
Test the binary coded decimal representation