954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Counting numbers

I have a sort of csv file which looks likes given below i want to count number of digits in each line like number of 0's ,1 s in each line and print them this way for each line i want to print information in csv file .

0 0 1 2 3 4 2 1 2 5 0 7 7 7 3 3 3 8 1 1 9 1 6 3 0 9 8 1 6 9 2 0 1 7 3 3 1 0 1 6 7 7 0 1 2 8 9 8 3 2 6 1 2 4 3 0 6 5 2 9 9 5 7 2 8 4 9 8 5 1 6 0 6 4 9 6 3 0 0 8 9 7 6 0 3 2 3 1 4 9 6 3 7 9 2 9

abhik1368
Newbie Poster
3 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Where are your program and effort to solve the problem ? Also what is a 'sort of csv file' ? Is it a csv file or not ?

Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: