title: powershell append to output
body: <p>I'm 'teaching myself to powershell' and have come a cropper already, and google/this site hasn't enabled me to find a solution. I'm compiling a text file with filelists from different directories, but i'm having trouble appemnding new data to the file.</p>
  
  <pre><code>get-childitem $dir -recurse | % {write-output $_.fullname} &gt;$file
  </code></pre>
  
  <p>creates my file, but then i want to APPEND new records from the below</p>
  
  <pre><code>get-childitem $dir2 -recurse | % {write-output $_.fullname} &gt;$file
  </code></pre>
  
  <p>I've tried both add-content and -append, but I cant figure out what I'm not doing to get it right.</p>