How do I find and delete something in a text file with Java Script?

Falco_DJ

Well-Known Member
OP
Newcomer
Joined
Jan 16, 2019
Messages
60
Trophies
0
XP
275
Country
United States
I'm trying figure out how to use java script to open a text file and search weather or not every line has an asterisk and a space "* " in the file and, if not I want to delete the lines without that prefix. I also don't want this to affect the original file so, it needs to make and edit a backup. How would I do that? Thank ahead of time!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: Lol