目录

test filePath="path/to/your/file.txt"filePath = "path/to/your/file.txt"newLine = “This is the new first line”

existingContent=GetContentexistingContent = Get-ContentfilePath newContent=newContent =newLine + “n" + ($existingContent -join "n”)

Set-Content filePathfilePathnewContent

关于
37.0 KB
邀请码