search and replace string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elanos
    New Member
    • Jun 2007
    • 2

    search and replace string

    Hey, I'm trying to write a program that opens the contents of a file, searches for a specific string value and then replaces that string with a specified string value. Any suggestions would help.
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by elanos
    Hey, I'm trying to write a program that opens the contents of a file, searches for a specific string value and then replaces that string with a specified string value. Any suggestions would help.
    Try using string.Replace.

    Have a look at the msdn to learn more.

    http://msdn2.microsoft .com/en-us/library/fk49wtc1.aspx


    Nathan

    Comment

    Working...