How to remove words from file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to remove words from file?

i wanted to remove words from a text file but all the words are listed in another text file i keep getting empty file or something else im using regx in c#. tnx. this is the start code https://code.sololearn.com/cjfz4jZWM2PU/?ref=app

31st Aug 2018, 12:35 PM
Leoulg
Leoulg - avatar
1 Answer
0
Play with foreach loops using a split() with the space to get each words from your file :) In your foreach you'll be able to play with if and switch.
31st Aug 2018, 1:24 PM
Sam Pache
Sam Pache - avatar