#define NOTE_FILE "../data/notes.txt" /* For 'notes'*/
#define BG_FILE "../data/bg.txt" /* For 'backgrounds'*/
#define KNOW_FILE "../data/know.txt" /* For 'backgrounds'*/
#define NEWS_FILE "../data/news.txt" /* For 'articles'*/
#define PAPER_FILE "../data/paper.txt" /* For 'newspapers'*/
for ( pnote = news_list; pnote != NULL; pnote = pnote->next )
{
if(type == NOTE_NOTE) {
I'm having a serious problem with my note system and it is a hot mess. The way the system was designed, our Note, Background, Fact, and Article system all use the note editors. After I thought I fixed the article system (a few threads back), things were going good. Then, really all of a sudden, it seems the articles replaced everything in the notes and backgrounds. Now, for some reason, it has not replaced anything in the facts, but that might be because I haven't added any facts.
It's like it is loading the article into everything. I can delete them and it does not change note.txt file, bg.txt file, etc… I even created a command to force the saving of those items and it doesn't change the file.
So, I tried deleting the bg.txt file (for example), where backgrounds are saved to. Then, I created a test command (below), to force it to save. And it saved the freakin' article over it. So, it has to be the way it is saving notes, right?
This is the save_note function. Is something wrong?
I'm really confused by this and it has cost me some amount of work loss, so I'm really trying to get this to work right.