Professional Documents
Culture Documents
Powershell Commands
Powershell Commands
=====================================================
create read and write into text file
New-Item D:\temp\test\test.txt it will create text file
Set-Content D:\temp\test\test.txt 'Welcome to TutorialsPoint' this will add content
to the file
get-Content D:\temp\test\test.txt reading the file
Set-Content D:\temp\test\test.txt 'Hello'
Add-Content D:\temp\test\test.txt 'World!' this will append the data
=====================================================