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

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

Falco_DJ
May 19, 2019
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!

» No answers yet.