
19.10.2009, 11:41
|
|
Познающий
Регистрация: 27.09.2008
Сообщений: 57
С нами:
9273960
Репутация:
23
|
|
Код:
// 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;
}
|
|
|