Update README.md
test filePath="path/to/your/file.txt"filePath = "path/to/your/file.txt"filePath="path/to/your/file.txt"newLine = “This is the new first line”
existingContent=Get−ContentexistingContent = Get-ContentexistingContent=Get−ContentfilePath newContent=newContent =newContent=newLine + “n" + ($existingContent -join "n”)
n" + ($existingContent -join "
Set-Content filePathfilePathfilePathnewContent
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
test filePath="path/to/your/file.txt"newLine = “This is the new first line”
existingContent=Get−ContentfilePath newContent=newLine + “
n" + ($existingContent -join "n”)Set-Content filePathnewContent