Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: CM8000 Classic8K.pgn Revisited

Author: Richard A Fuchs

Date: 12:47:26 03/16/01

Go up one level in this thread


On March 16, 2001 at 13:24:02, Mike S. wrote:

>On March 16, 2001 at 09:20:36, Richard A Fuchs wrote:
>
>>(...) I converted all comments to the
>>brace type comment and as far as I can tell,
>>it cleaned up the file and
>>Chessbase knows how to read it just fine.
>
>Is there a trick to do this? It doesn't look like a simple "search & replace"
>task, because there is no character to be replaced by "}". Or are there not much
>semicolon type comments included in the file, so that it can be done manually?
>
>Thanks,
>M.Scheidl

I did it in Borland C++ Builder. I read in the file to a String List (each line
would then be a separate string). I then searched each string for the semicolon
character and if found, replaced it with the open brace then added a closing
brace to the end of that line.



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.