Forum Discussion
ratoor
Aug 12, 2021Copper Contributor
Out-File or Set-Content format is not same as console output
The output that I see on the console looks different from what gets redirected to the file $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add(...
yuzoyox
Aug 13, 2021Iron Contributor
Try to use
Write-Output
$response.content | Write-Output >> "C:\inetpub\wwwroot\abc.com\feed_IPV4.txt"
- ratoorAug 13, 2021Copper Contributoryes that worked. And I also found this works.
response.content.split() | out-file -FilePath "C:\inetpub\wwwroot\abc.com\feed_IPV4.txt"