write a c++ program that reads a text file ant prints the no. of characters in it.

0 votes
asked Dec 3, 2018 by anonymous

2 Answers

0 votes
answered Dec 5, 2018 by anonymous
Fuck your mind
0 votes
answered Dec 5, 2018 by John Cena


using namespace std;

int main()


    ifstream fin("FILE_NAME.txt",ios::in);//assuming a file with name "File_NAME.txt has data already stored

    char ch;

    int c=0;





     cout<<"NO of Characters: "<<c;

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.