Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: problem in priniting new line in a logfile

Author: Dennis Breuker

Date: 05:15:15 11/11/03

Go up one level in this thread



>I opened it to write at the end by
>
>logmovei=fopen(logstring,"a+b");

Remove the b.
b stand for binary, and you want ASCII!

Or, if you do want to use binary,
use \r\n instead of \n in your fprintf.
That should do the trick.

Dennis



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.