Fixed win64 issue, must open file in binary mode.  Fixed B type field (double, not text).