this directory may contian any number of files with any type
if the file type is.txt
read the file content as a string and replace some value with other plz tell me the code
ex:this is company
file.txt should be like: this was my company
this directory may contian any number of files with any type
if the file type is.txt
read the file content as a string and replace some value with other plz tell me the code
ex:this is company
file.txt should be like: this was my company
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Jan 20, 2022, 10:22 AM EST
Try the following step-by-step link to read and replace the particular text using Powershell script.
https://adamtheautomator.com/powershell-read-text-file/