--
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<string.h>
void main()
{
char ch;
char n;
int c,w,l;
c=w=l=0;
clrscr();
ifstream fin;
fin.open("a.txt");
while(fin)
{
fin>>n;
// fin>>ch;
if(n>=65 && n<=90 || n>=97 && n<= 122)
{
c++;
}
if(n==" ")
{
w++;
}
if(n== "\n")
{
l++;
}
}
cout<<"\n No of character are : "<
//out<<"\n No of words are : "<
//cout<<"\n No of lines are : "<
fin.close();
getch();
}
note-
a.txt -file
whatever text it