# Writing

Writing: Writing to Files: Set-Content, Add-Content and >, Editing in the Terminal: edit.

Updated: November 10, 2026

1. [Writing to Files: Set-Content, Add-Content and >](https://www.ask-codey.com/lessons/powershell-writing-to-files) (Novice): Set-Content writes a file, replacing whatever it held, Add-Content adds lines to its end, and > and >> save a command's output into a file the same two ways, in UTF-8 text.
2. [Editing in the Terminal: edit](https://www.ask-codey.com/lessons/powershell-editing-with-edit) (Novice): edit opens a text file in Microsoft Edit, an editor inside the terminal where the arrow keys and the mouse both work, Ctrl+S saves and Ctrl+Q quits, and notepad and code open the same file in a window.

Source: https://www.ask-codey.com/courses/powershell-in-depth/topics/powershell-writing
