How i get a name without the last 4 charecter using C# substring?
<p>Using this below code i get the name only first 4 character.But i need the name except the last 4 character.</p>

<pre><code>string fileName = Textbox1.text;
string newName = fileName.Substring(0, 4);
</code></pre>

<p>//ex: input abcdef.txt
//output:abcd</p>

<p>But i need output: abcdef </p>

<p>pls help!</p>

<p>thanks
Riad</p>
