Replace Text In File - Multiple lines - RESOLVED
Building an app to replace keywords or entire sentences. I have been reding the entire file into a string and then using the replace command. The only problem is when printing the file back into the file it looses all the cariage returns. If I read the file one line at a time it may not find the entire keyword. For example if I need to find and replace a table in a HTML document reading one line at a time would not be able to find the table. Any ideas on how I can do a replace command on a file and have the string to find be on multiple lines but still retain the cariage returns. Thanks