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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

JAVA

File read write and string manipulation

data1.txt(down below)

4,5-t 2,4-d 20-p7int 2D 2nd 2 1080 &c 10-p7int 10th 11-p7int 12-p7int 16-p7int 18-p7int 1st 2,4,5-t 2,4-d 20-p7int 2D 2nd 30-30 3D 3-D 3M 3rd 48-p7int 4-D 4GL 4H 4th 5-p7int 5-T 5th 6-p7int 6th 7-p7int 7th 8-p7int 8th 9-p7int 9th @ @' @- @&M @&P @. @.@.@. @.B. @.B.@. @.C. @.D. @.D.C. @.F. @.F.@.M. @.G. @.H. @.I. @.I.@. @.I.D. @.L. @.L.P. @.M. @.M.@. @.M.D.G. @.N. @.p. @.r. @.R.C.S. @.U. @.U.C. @.V. @.w. @.W.O.L. @/C @/F j54rs54y54d J54rs54yit54 j54rs54yit54s J54rs54ym@n j54rs54ys j54rs54y's J54rs54yvill54 j54rt J54rubb@@l J54rubb@l J54rus@l54m J54rus@l54mit54 j54rvi@ j54rvin j54rvin@ j54rvin54 J54rvis J54rk J54S J54sh J54sh54r J54smin54 j54sp54r J54sp54rs54n J54ss J54ss@ J54ss@b54ll j54ss@k5454d J54ss@lin J54ss@lyn j54ss@my j54ss@mi54s J54ss@myn J54ss@min54 j54ss@nt J54ss54 J54ss54@n j54ss54d J54ss5454 J54ss54y J54ss54lyn J54ss54lt7n J54ss54n j54ss54s J54ssi J54ssy J54ssic@ J54ssi54 kikkl54 kikkl54d kikkl54s kikkling kykk7g54t7n kK kkinth7s kl kl@t7ust kl7t54 kl7ty kl7tych fl7ti54s fl7tys fMRI fmudf fn fn@ni54cki f7 f7- f7@ f7@cum f7@54@ f7@n f7@nth@c54@ f7@nth@c54@n f7@nth@ri@ f7@nth@ri@n f7@nthid f7@nthid@54 f7@nthid54@ f7@nth7d54m54 n7@nth7d54mic n7@nth7id n7@nthr7py n7@nthus n7@r n7@r@ n7@r@h n7@rc54s n7@rcid@54 n7@ri@ n7@ri@l n7@rit54 r7@rium Greek r7b54 r7bi@s r7bkiw r7b7 r7bt54nit54 r7c@l7 r7cc7 r7cc7l7 Coffee r7di@c r7di@c@l r7di@cs r7di7phil7us r754 r754@ r754@54 r754@f7rm r754@l grapes r754f7rm r754h54m54r@ r754h54m54r@54 Z754ll54r Z754llick Z75 &data7 @hpouse9 R3ed #result r754tr7p54 r754tr7pic Z7ff@ny r7ftig r7g@n r7g7 battle battle-ax battle-axe Battleboro battler angle ant, apple arch arm army baby bag, ball band basin bed bee, bell berry bird trousers Bazil Bazin Bazine Baziotes B#zluke b#zoo b#zook# Z7h@ Z7h@k Z7h@r Z7h@r@ Z7h@r$st Z7h@r$t54 Z7$ r7$@tr$@ r7$@tr$cs r7$c r7$d d7$d$7ph$l7us d7$d7g@m7us Z7$54 Z7$l@ Z7$l54@n Z7$l$sm Z7$l$st Z7$ll@ Z7$lus Z7ys$@ d7ys$@s d7$s$t54 d7$s$t54s d7isitid@ti7n d7ism d7ist d7istic d7k7r Z7l@ Z7l@54squ54 Z7l@ism Z7l@ist Z7l@istic Z7l@id54 Z7ldi d7ll d7ll54 Z7ll54r Z7ll54rni@ Z7lly Z7lli54

You are given a text file (datal.txt) that consists of different garbage strings.
Your task is to:
• Create a new file, from data1.txt, which contains all the strings from the
previous file with the following constraints:
o No special characters or digits must be in the new string
o No repetition of letters in the new string
• Save the newly generated text-file as follows: data2.txt
The following example in table 1 shows what your output file should contain.
datal.txt
data2.txt
f5@p
fp
p&ott6
pot
Instructions:
Create a class cleanFile to read in datal.txt
Clean the data inside the files following the rules in the above example
Write the cleaned data into data2.txt
Transcribed Image Text:You are given a text file (datal.txt) that consists of different garbage strings. Your task is to: • Create a new file, from data1.txt, which contains all the strings from the previous file with the following constraints: o No special characters or digits must be in the new string o No repetition of letters in the new string • Save the newly generated text-file as follows: data2.txt The following example in table 1 shows what your output file should contain. datal.txt data2.txt f5@p fp p&ott6 pot Instructions: Create a class cleanFile to read in datal.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 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY