Torna al Thread
public void threadwrite(object obj)
{
string r = (string)obj;
try{
using (StreamWriter sw = File.AppendText(@"..\Debug\FILEDOVEMEMORIZZOIDATI\dati.txt")) //this.path))
{
// Add some text to the file.
sw.WriteLine(DateTime.Now);
sw.Write(r+"\n");
}
MessageBox.Show("Ho scritto nel file correttamente Premi leggifile nel Server");
}
catch (Exception err)
{
MessageBox.Show (err.Message);
}
}