PowerTip: Read Text File in Raw Mode with PowerShell
Summary: Use Windows PowerShell to read a text file in raw mode.
Use the –Raw parameter with Get-Content. This forces Windows PowerShell to ignore new line characters and
end-of-line returns, and instead, return the contents of the file as one string. Here is an example:
Get-Content C:\fso\AnEmptyFile.txt -Raw