SyntaxFix
Write A Post
Hire A Developer
Questions
On a side note, in PowerShell 3.0 you can use the Get-Content cmdlet with the new Raw switch:
Get-Content
$text = Get-Content .\file.txt -Raw