given a text file (data1.txt) that consists of different garbage strings. 1.Create a new file, from data1.txt, which contains all the strings from the previous file with the following constraints: -No special characters or digits must be in the new string -No repetition of letters in the new string • Save the newly generated text-file as data2.txt The following example in table 1 shows what your output file should contain. data1.txt        data2.txt f5@p              fp p&ott6           pot Instructions: Create a class cleanFile to read in data1.txt Clean the data inside the files following the rules in the above example Write the cleaned data into data2.txt

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 1DE: Each of the following files in the Chapter.02 folder of your downloadable student files has syntax...
icon
Related questions
Question

java

given a text file (data1.txt) that consists of different garbage strings.

1.Create a new file, from data1.txt, which contains all the strings from the
previous file with the following constraints:
-No special characters or digits must be in the new string
-No repetition of letters in the new string
• Save the newly generated text-file as data2.txt
The following example in table 1 shows what your output file should contain.
data1.txt        data2.txt
f5@p              fp
p&ott6           pot
Instructions:
Create a class cleanFile to read in data1.txt
Clean the data inside the files following the rules in the above example
Write the cleaned data into data2.txt 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT