Need to know how to read an html file and then find the index of a string using indexOf function and use the replace function to replace that string with example.
Working with html file now...need to know how to find the index of "<h1>" and "</h1>" and then replace the string between the two with another string.
the index value when i tried was returned as -1. the file was not read
need help urgently!