using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;namespace FileWriteRead
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void WriteToFile_Click(object sender, EventArgs e)
{
TextWriter tw = new StreamWriter("date.txt");
tw.WriteLine(DateTime.Now);
tw.Close();
}
}
}
ואיך אני שם את זה פה שזה יועתק בצורה הנכונה ?
תודה.