FileHelper.ReplaceInFile Method (String, String, String, Encoding) |
Performs the string replacement within the file.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntaxpublic static void ReplaceInFile(
string filePath,
string what,
string replaceWith,
Encoding encoding
)
Parameters
- filePath
- Type: System.String
File path - what
- Type: System.String
String to replace (old string) - replaceWith
- Type: System.String
Replacement (new string) - encoding
- Type: System.Text.Encoding
File encoding
See Also