replace space for every string in the list
<p>I am trying to renaming every file's empty space with an underscore:</p>

<pre><code>DirectoryInfo dir = new DirectoryInfo(@"Q:\Audio");
var files = (from f in dir.GetFiles() select f.FullName);
files.ToList().ConvertAll( s =&gt; s.Replace( " ", "_") );
</code></pre>

<p>But it's not working, I tried to use a foreach loop and it complains "Cannot assign to 'element' because it is a 'foreach iteration variable'"</p>

<p>How do I approach this?</p>
