void readfile(char *dictionary) //Reads the dictionary file into memory for optimized searching// { FILE *fp1 = fopen("dictionary.txt","rb"); fseek(fp1,0,SEEK_END); float endpos = ftell(fp1); fseek(fp1,0,SEEK_SET); char *dictionary = malloc(endpos); fread(dictionary, endpos, 1, fp1); fclose(fp1); }