public void write_date()
{
string fileName = @"C:\adi.txt";
using (FileStream fs = File.Open(fileName, FileMode.Open, FileAccess.Write, FileShare.None))
{
Byte[] info = new UTF8Encoding(true).GetBytes("This is adi");
fs.Write(info, 0, info.Length);
}
}
No comments:
Post a Comment