SyntaxFix
Write A Post
Hire A Developer
Questions
You could try something like this:
$path = "C:\testFile.txt" $word = "searchword" $replacement = "ReplacementText" $text = get-content $path $newText = $text -replace $word,$replacement $newText > $path