#include int main(){ char s[1024]; FILE *fp; char *p; fp=fopen("in.txt","r"); if(fp == NULL) return -1; while(fgets(s, 1024, fp)) { p=strstr(s,"Molecule"); if(p) { p+=3; while(*p!='\'') putchar(*p++); } } fclose(fp); return 0;}