DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

File Write — Example 137

Quick explanation + ready code for: File Write.

PowerShell File Write Back to examples
Back to language
Syntax: File Write in PowerShell. ID: #137

Code

"Hello #17" | Out-File out.txt -Encoding utf8

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.