platyPS
platyPS copied to clipboard
Fix file writing mode in WriteToFile method when overwriting
PR Summary
Set FileMode to Truncate when overwriting existing content,
PR Context
I noticed that when I overwrite Maml help with Export-MamlCommandHelp -Force, which results in a smaller file size than before, the previous data remains at the end.