meetpd
asked on
Search and replace string in a file using ASP.NET C#
Hi,
I am new to ASP.NET C#.
I want to search for a string and replace that string with another string in a file.
How do I do that?
I am new to ASP.NET C#.
I want to search for a string and replace that string with another string in a file.
How do I do that?
Replace data in file C#
http://towardsnext.wordpress.com/2009/02/02/replace-data-in-file-c/
http://towardsnext.wordpress.com/2009/02/02/replace-data-in-file-c/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How do I replace
<?xml version="1.0"?> with
<?xml version="1.0" encoding="ISO-8859-1" ?>
Because there are double quotes in between, I am not able to figure out how to put them in
strData = strData.Replace("Old", "New") format.
Can you please help?
<?xml version="1.0"?> with
<?xml version="1.0" encoding="ISO-8859-1" ?>
Because there are double quotes in between, I am not able to figure out how to put them in
strData = strData.Replace("Old", "New") format.
Can you please help?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Everyone for helping me you...
http://dotnetperls.com/replace-string-use