title: C# write to file inside linq query
body: <p>how can i write to a file inside a linq query? or call a custom function that writes to a file?
  i'm comparing pictures for similarity. and want to check the files that have been compared to each other in a log file. because some pictures where marked as similar but aren't.</p>
  
  <p>thanks in advance!</p>
  
  <p>[EDIT]</p>
  
  <p>the linq query is just:</p>
  
  <pre><code>IEnumerable&lt;PicInfo&gt; t = from f in lista
  from q in listb
  where (((64 - BitCount(f.visualCharHash ^ q.visualCharHash)) * 100.0) / 64.0 == 100)
  </code></pre>
  
  <p>no writings to a file are being made here. simply, because i have no clue how to do so. and google didnt find me any results showing how to do this.</p>
  
  <p>but it does show 'writing linq query's'</p>
  
  <p>no results for 'write to file inside linq query's'.</p>
  
  <p>[/EDIT]</p>