|
-
Nov 20th, 2004, 07:03 PM
#1
Thread Starter
Member
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
Last edited by DinoRoger; Nov 20th, 2004 at 08:26 PM.
-
Nov 20th, 2004, 07:35 PM
#2
"It's cold gin time again ..."
Check out my website here.
-
Nov 20th, 2004, 08:25 PM
#3
Thread Starter
Member
That helped a bunch. Thanks for the link searched for a few terms but never found that post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|