title: PowerShell: Store Entire Text File Contents in Variable
body: <p>I'd like to use PowerShell to store the <em>entire</em> contents of a text file (including the trailing blank line that may or may not exist) in a variable. I'd also like to know the total number of lines in the text file. What's the most efficient way to do this?</p>