so as i stated that is where it is, and i have no idea how to stop it? I need to open the user_dictionary append, read and write. and i need to write that word at the end of the file. but i always get a segfault. I commented it out and it worked fine, but i need to be able to write that word in there in order for it to stop asking the user if he wants to add it in.Code:if (search == 0) { non_linux = non_linux + 1; // just a counter printf("'%s' was not found in the linux or user dictionary\n", compare_word); printf("Do you want to add this word to your dictionary(1) yes, (0) no.\n"); scanf("%d", &answer); if(answer == 1) { if(user_dictionary == NULL) { // prompt user one last time for the dictionary printf("File does not exist, one wil be created and appened the word"); user_dictionary = fopen(dictionary_filename, "a+"); fprintf(user_dictionary, "%s ", compare_word); // HERE IS WHERE THE SEGFAULT IS fprintf(out, "%s%c ", compare_word, punct); // just some output } else { printf("File exists and will have the new word saved.\n"); fprintf(user_dictionary, "%s ", compare_word); fprintf(out, "%s%c ", compare_word, punct); } }