Method must have a return type
<pre><code>    public  writer (string name,string lastname,string number)
    {
        StreamWriter Wrt = new StreamWriter("D:\\Sample.txt",true);
        Wrt.WriteLine(name);
        Wrt.WriteLine(lastname);
        Wrt.WriteLine(number);
        Wrt.WriteLine("#");
        Wrt.Close();
    }
</code></pre>

<p>there an error that Method must have a return type!
how do i fix it?
what's wrong?</p>
