Storing output in some shape or form is a very common task in PowerShell. However, many administrators either don't know how to do it efficiently or are forgetful and don't remember that PowerShell actually has a pretty efficient operator for file output.
This recipe shows you how to read large files first, before demonstrating how you can also write large amounts of text very efficiently using different methods.