Passing string to int to substring
<p>I currently get the users number like this:</p>

<pre><code>        if (checkBox1.Checked)
        {
            rchars = numericUpDown1.Value.ToString();
        }
        else
        {
            rchars = "3";
        }
</code></pre>

<p>string rchars; is a global variable.</p>

<p>So, I'm trying to remove the rchars from file names.
For example the first three characters from the file name:</p>

<pre><code>            int num = Int32.Parse(rchars);
            foreach (FileInfo name in fpaths.GetFiles("*.mp3")
            {
                string snub = name.Name.Substring(num);
                MessageBox.Show(snub);
                System.IO.File.Move(blah + name.Name, newblah + snub);
            }
</code></pre>

<p>My question is how can I get "num" to work in a substring? Since I can't get it to be a value. Since I want to pass it from the numericUpDown. Add make "num" a value so I can remove the value from the file names.</p>

<p>Thanks.</p>
