Click or drag to resize
FileHelperReplaceInFile Method (String, String, String, Encoding)
Performs the string replacement within the file.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
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