1 2 3 4
|
char nl[32], cl[32], il[32], sl[32], pl[32];
FILE *fl=fopen("f.txt","r"); fscanf (fl,"%s\n%s\n%s\n%s\n%s",&nl,&cl,&il,&sl,&pl);
if( (strcmp(nl, "")!=0) && (strcmp(nl, " ")!=0) && (strcmp(cl, "")!=0) && (strcmp(cl, " ")!=0) && (strcmp(il, "")!=0) && (strcmp(il, " ")!=0) && (strcmp(sl, "")!=0) && (strcmp(sl, " ")!=0) && (strcmp(pl, "")!=0) && (strcmp(pl, " ")!=0) ) {
printf("%s %s %s %s %s); }
|