I have a PowerShell script that dumps a gazillion lines into a csv file when processing very large XML.
While reading an xml read, I write each line to the csv file as follows:
$newline | add-content -path $csv_file
This works 99%, but sometimes I see that in the "add-content: stream was not readable" log for 1 or 2 elements from gazillions I assume because he is busy writing the last line.
Any permission?
source share