Writing a File: StreamWriter's Defaults

A StreamWriter writes text to a file the way Console writes to the screen. By default it creates the file, or replaces one that's already there. Close it with using, so everything written reaches the disk.

Updated

Cheat sheet: Writing a File: StreamWriter's Defaults
Category
C#
Level
Journeyman
Tags
Buffer (c-sharp), c-sharp, StreamWriter