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); } }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5