Nautilus Systems, Inc. logo and menu bar Site Index Home
News Books
Button Bar Menu- Choices also at bottom of page About Nautilus Services Partners Case Studies Contact Us
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Subscribe]

DM: RE:


From: Michel de Ruiter
Date: Mon, 11 Sep 2000 12:07:48 +0200
 > I am having trouble with consult because it loads the binary
 > saved tree using character file i/o.  The tree I am trying to
 > use just happens to have a <CTRL Z> in the data somewhere
 > that got treated as an eof and messed up the tree load.  I am
 > still playing with this.  I suspect that if I open the file
 > as binary, the problem will go away.

Indeed, change the lines 302 and 390 of trees.c to the
following and your problems will probably go away:

302:    if ( ! ( TRf = fopen(Fn, "wb") ) )

390:    if ( ! ( TRf = fopen(Fn, "rb") ) ) Error(0, Fn, "");

Hope this helps.

Groente, Michel.




[ Home | About Nautilus | Case Studies | Partners | Contact Nautilus ]
[ Subscribe to Lists | Recommended Books ]

logo Copyright © 1998-2000 Nautilus Systems, Inc. All Rights Reserved.
Email: firschng@nautilus-systems.com
Mail converted by MHonArc 2.2.0