Can anyone give me some help as to why my code hangs.? assume that i've passed a proper argument.NEVER MIND!!!!Code:/*gets all the digits in a text file and puts to stdout this seems to just hang. don't know why and i'm very annoyed. */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(int argc, char *argv[]){ int ch; FILE *file; if ( (file = fopen(argv[1], "r") ) == NULL) puts("Unable to open file"); getchar(); return 1; while( ( ch = fgetc(file) ) != EOF){ if (isdigit(ch)) putchar(ch); } if ( fclose(file) !=0) puts("Unable to close file"); getchar(); return 0; }