Sunday, April 03, 2005

string config

config/mytactic.cfg
MYFILE = "mydir/myfile.txt";

soccer/*.cc
CR_DECLARE(MYFILE);
CR_SETUP(mytactic, MYFILE, CR_STRING);

FILE *f = fopen(SVAR(MYFILE), "rt");