Question: Write a program that reads a text file, removes all occurrences of a specified String and stores the remaining words in another text file. You

 Write a program that reads a text file, removes all occurrences

Write a program that reads a text file, removes all occurrences of a specified String and stores the remaining words in another text file. You may assume that the text file contains Strings, one on each line. For example, suppose the input text file lang. txt contains the following words: Java C C++ COBOL Ada Pascal LISP PERL Python Pascal A sample screen dialog is given below: Enter the name of the file to read from: lang.txt Enter the String to remove: Pascal Enter the name of the file to write into: langl.txt Data written into langl.txt Now langl. txt will contain the following: Java C C++ COBOL Ada LISP PERL Python

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!