Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

search string in file node

fs.readFile(FILE_LOCATION, function (err, data) {
  if (err) throw err;
  if(data.includes('search string')){
   console.log(data)
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #string #file #node
ADD COMMENT
Topic
Name
7+7 =