I have a file of the form:
car1 auto1 automobile1 machine4 motorcar1
bridge1 span5
road1 route2
But I want to remove the integers so that my file looks like:
car auto automobile machine motorcar
bridge span
road route
I am trying to read the file character by character, and if a character is a digit, skip it. But I am printing them in a new file. How can I make changes in the input file itself?