#include<fstream.h>
#include<ctype.h>
#include<conio.h>

int main()
{
clrscr();
ifstream f;
f.open("D:/asa.txt");
ofstream c,d;
c.open("D:/Char.txt");
d.open("D:/Digit.txt");
while(f.eof()==0)
{
char ch;
f.get(ch);
if(isalpha(ch))
c.put(ch);
else if(isdigit(ch))
d.put(ch);
}
c.close();
d.close();
getch();
return 0;
}

Post a Comment

Previous Post Next Post