here's something i've made, but how to make statistic how many letters and numbers are the file ?
Code:
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <string>
using namespace std;
int main(){
ifstream in;
string x;
int i, b=0;
in.open("C:\\test.txt");
while(getline(in,x))
cout<<x<<endl;
cout<<endl;
for(i=0;i<in.length();i++){
if(in.at(int(i))>=65 && in.at(int(i))<=90 && in.at(int(i)>=97 && in.at(int(i)<=122)
b++;
}
cout<<"The file has"<<b<<"letters"<<endl;
vlez.close();
system ("PAUSE");
return EXIT_SUCCESS;
}