[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Confuse-devel] cfg_set error
From: |
Martin Hedenfalk |
Subject: |
Re: [Confuse-devel] cfg_set error |
Date: |
Sun, 12 Jan 2014 18:03:28 +0100 |
7 jan 2014 kl. 08:45 skrev wangsong <address@hidden>:
> Hi:
> I have a question about the cfg_setstr() function, while I use the function,
> it can't work, the file dosen't change at all.
cfg_setstr does not write the changes back to the file, it only changes the
in-memory representation. You can try cfg_print().
> While I use cfg_parse_fp, I set fp as "a" mode, but the cfg_parse_fp sends an
> error to me "input in flex scanner failed ".
"a" only opens the file for writing. Try "a+".
.martin
> Thanks a lot.
> By Jacky
> _______________________________________________
> Confuse-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/confuse-devel