is there anyone who knows how to remove numbers and coma's from a text file

Recommended Answers

All 5 Replies

Depends what you mean by remove..Do you mean replace with spaces or do you mean take the character out and shift everything over one space....

for example:
i have a sentence with numbers (i have 5 books), when i run my c program i want to see just (i have books) without 5.

for example:
i have a sentence with numbers (i have 5 books), when i run my c program i want to see just (i have books) without 5.

So you want to filter what you read from the file but not change the file?

exactly, that what i like do.

I would use a switch statement to filter each character you read from the file.

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.