How to write a C Program to Find Dictionary Word Search ?
Solution For C Program to Find a Word in Dictionary :
Learn To Write A Program. Learn Programming Online. Find Programming Solutions.
/*opens and reads dictionary file specified in spellrc*/ if (strcmp(settings_p->autoCorrect, "yes") == 0) { actionFunc_p = &autoCorrect; printf("action function set to autoCorrect\n"); } else { actionFunc_p = &noAutoCorrect; printf("action function set to no autoCorrect\n"); } printf("Current value of dictionary: %s\n", settings_p->dictionary); dictFile_p = fopen(settings_p->dictionary, "r"); if (!dictFile_p) { perror(settings_p->dictionary); return 1; } printf("Opened dictionary file successfully\n"); /* TERMINAL OUTPUT: Current value of dictionary: thedictionary.txt action function set to autoCorrect Current value of dictionary: # ��� : No such file or directory */