// word_parser.cpp : Defines the entry point for the console application. // #include <iostream> using namespace std; int main() { FILE *fp,*fp2; char buff[100],*str,*str2; fp = fopen("keys.txt","r+"); fp2 = fopen("key_pasrse.txt","w+"); while(!feof(fp)){ str=fgets(buff,100,fp); str2=strtok(str,":"); fputs(str2,fp2); } return 0; }