best way to generate sequentual filenames
<p>I am trying to generate filenames, 
log.txt
log1.txt
log2.txt
etc</p>

<pre><code>int filenum = 0;
public static void Maker()
{
  string basename = "log";
  string extention = ".txt";
  string finalname = "log.txt";
  for (int i = 0; i &lt; 300; i++)
        {
            using (StreamWriter writer = new StreamWriter(workingDIR + finalname, true))
        {
           // addadder(filenum);
            StringBuilder builder = new StringBuilder();
            builder.Append(base);
            builder.Append(filenum);
            builder.Append(extension);
            finalname = builder.ToString();

        }   } 
}
</code></pre>

<p>Is there a better way to create these types of files ?
The first file need to have no number in it EI log.txt
thanks</p>
