OMG OMG Thank you all for ya'll help. One more question real fast! It's working, by the way, but it's not printing the first printf's in the loop.
Any reason ya'll can think of?Code:int main() { int i; char c; FILE *in_file; in_file = fopen("wordlist.txt","r"); do { if( feof(in_file) ) rewind(in_file); fscanf(in_file, "%s", word_to_guess); for(i = 0; i < strlen(word_to_guess); i++) { word_to_guess[i] = tolower(word_to_guess[i]); } initialize(); instruct(); do { printf("/n Number of tries left : %d", guess); printf("/n %s", letters_guessed); printf("/n Word to guess : "); for(i = 0; i<strlen(word_in_prog); i++) printf("%c ", word_in_prog[i]); printf("Please guess a letter : "); gets(&c); c = tolower(c); if( !letter_check(c) ) guess--; } while( guess > 0 && !won() ); if( guess == 0 ) printf("\n You LOSE!"); } while(play_again()); fclose(in_file); }

