Question: Object Oriented Programming Write a Java program to check if a file specified by a pathname (take pathname as input from the user) exists or

Object Oriented Programming

Write a Java program to check if a file specified by a pathname (take pathname as input from the user) exists or not. If it is a text file & contains any character except English alphabet & number then delete all those invalid characters & rewrite the converted texts to another file named output.txt. [Hint: Consider ASCII values of the characters to filter characters.]

Object Oriented Programming Write a Java program to check if a file

(NEED IT IN 20 MINUTES)

Sample Output file: Sample input file: "I wish it need not have happened in my time,' said Frodo. 'So do I,' said Gandalf, and so do all who live to see such times. But that is not for them to decide. All we have to decide is what to do with the time that is given us. Iwishitneednothavehappenedinmytimes aidFrodoSodoIsaidGandalfandsodoallw holivetoseesuchtimesButthatisnotforthe mtodecide Allwehavetodecideiswhattod owiththetimethatisgivenus

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!