the text file looks like:
one hello hi
twenty-five billion
fifty maths
three thousand and two

output:
count the number of text numbers: 4

please Give me any idea..

Recommended Answers

All 2 Replies

Is there always just one number on a line, or can a line have more than one number? If only one number, then just count the number of lines in the file.

Can you show us your code ... Show us something.
Shall we share some ideas??

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.