View Single Post
Old 04-20-2008   #1 (permalink)
ssg31415926


 
 

Reading a text file and retaining line feeds

I've tried reading a text file using

$reportContent = get-content -path $tempFilePath

but it loses the line-feeds so I just get one long string. Can I do
it with get-content or do I need to use a StreamReader or something
similar?
My System SpecsSystem Spec