View Single Post
Old 08-11-2006   #3 (permalink)
Adam Milazzo [MSFT]


 
 

Re: Redirecting function contents to a file truncates function linesat the width of the console

Keith Hill [MVP] wrote:
> The redirector operator uses out-file underneath. Try this:
>
> gc function:foo | out-file filename -width 120
>
> There are other parameters on out-file that allow you to controls things
> like encoding, appending, etc.

Hmm, thanks, good to know.

But it shouldn't be wrapping lines in output files by default, I don't
think.

And how could I send the error stream to a file without it wrapping?
My System SpecsSystem Spec