View Single Post
Old 09-19-2006   #6 (permalink)
XShell


 
 

Re: Why does get-content on a text file remove crlf when cast to a string?

>>
>> gci -i Assemblyinfo.cs -r | %{$contents=gc
>> $_.FullName;doWork([system.string]::join("`r`n", $contents)) }
>>


or you can use .Net

[System.IO.File]::ReadAllText(Assemblyinfo.cs)


My System SpecsSystem Spec