What is the ~ character used for in C#
<p>I came across this piece of code today:</p>

<pre><code>File.SetAttributes(excelFileName, File.GetAttributes(excelFileName) &amp; ~
                   (FileAttributes.Archive | FileAttributes.ReadOnly));
</code></pre>

<p>Never seen it before. Anyone know?</p>
