Results 1 to 3 of 3

Thread: Replace Text In File - Multiple lines - RESOLVED

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    36

    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.

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    "It's cold gin time again ..."

    Check out my website here.

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    36
    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
  •  



Click Here to Expand Forum to Full Width