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