#include #include #include #define MAXLINE 20 int main(){ FILE *fpin; char line[MAXLINE]; char guess[MAXLINE]; char character; char current_guess; char word_guess[MAXLINE]; int lifes_remaining=10; int y,q; if((fpin=fopen("unknown1.txt","r"))== NULL) { printf("Cannot open file\n"); /* open unknown1.txt as a read only file */ exit(EXIT_FAILURE); } fscanf(fpin,"%s",line); /* taking the text from unknown1.txt and copying it to line */ { printf("Ready to start!, the word is");} int x=strlen(line); for(y=0;y