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