Saving, Updating Text Files with PowerShell
I had a need to manipulate some text files to get the clean data the other day and found it’s extremely easy to deal with text files with PowerShell. To open a text file and get the content of it, Get-Content path\filename.txt But I can use ForEach cycle to read each line the same time. foreach ($eachline in Get-Content path\filename.txt) […]