Dobrý den. Potřebuji zapsat obsah labelu do textového souboru. Vše mi funguje ale neukládá se mi to horizontálně ale vertikálně, nevíte co s tím ?
private void button1_Click(object sender, EventArgs e)
{
System.IO.StreamWriter sw = new System.IO.StreamWriter(@"c:\label.txt");
foreach (object item in label1.Text)
sw.WriteLine(item.ToString());
sw.Close();
}