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
285
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!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @K3Nv2, He acts like a roomba.