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

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 ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.