I have a code to read a line from a file input. My goal is if a line is a blank (either, \n \t or spaces), skip the line and continue to the next line. I have a problem on doing this. My code worked if the line is only an "enter key [\n]", however, if the line consists of just \t (tab) or spaces, it does not work. Here is the code. Can somebody help me how to ignore if the line is completely whitespaces? Thank you
while(!feof(input)){
fgets(word,1000,input);
if((strcmp(word,"\n")==0) || (strcmp(word,"\t\n")==0) || (strcmp(word," \n")==0)){
continue;
}