Solution :
import java.io.*;
class Slip_1_1_B{
public static void main(String args[]) throws IOException{
char ch;
FileReader fr = new FileReader("a.txt");
FileWriter fw = new FileWriter("b.txt");
int c;
while ((c=fr.read())!=-1){
ch=(char)c;
if(Character.isDigit(ch)==false){
fw.write(c);
}
}
fr.close();
fw.close();
}
}
Text Files
a.txt
Coding Activity 2022
b.txt
Coding Activity
0 Comments