RosettaCodeData/Task/Truncate-a-file/PowerShell/truncate-a-file.psh

4 lines
72 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
Function Truncate-File(fname) {
$null | Set-Content -Path "$fname"
}