Author: Robert Hyatt
Date: 12:41:32 06/17/98
Go up one level in this thread
On June 17, 1998 at 14:06:11, Stuart Cracraft wrote: >On June 16, 1998 at 17:52:41, David Fotland wrote: > >>If this is a PC, you should open the file in binary mode. >> >>On the PC, end of lines are stored as CRLF, and a file opened in >>ascii mode will convert LF to CRLF, adding an extra byte from >>time to time. >> >>David Fotland > >File was non-text binary structs at the time the message was posted. >Had already tried both w+b and w modes, both resulting in the extra >byte. > >To fix, I've converted to a wholly text flat-file ascii which adds >the ability for human editing and updates to the file to control learning. This is one of those approaches that I'd label "bad software engineering." IE you have a bug, so you change something and the bug goes away... or does it? In your case, I can't imagine that this is a system problem because my book and position files are binary, and they *never* pick up odd bytes. If yours are, there is something going wrong, perhaps a wild store, perhaps an undefined variable. But I wouldn't rest until I had precisely "pinned the tail on the donkey" otherwise, such bugs have a nasty way of coming back again and again, until they are fixed.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.