8
Metin dosyası oluşturma ve özellikleri gizli ve arşiv ve ReadOnly kullanarak C# nasıl yapılır?Metin dosyası oluşturun ve gizli yapın ve okuyun. Sadece C#
Metin dosyası oluşturma ve özellikleri gizli ve arşiv ve ReadOnly kullanarak C# nasıl yapılır?Metin dosyası oluşturun ve gizli yapın ve okuyun. Sadece C#
FileStream fs = File.Create("test.txt");
fs.Close();
File.SetAttributes(
"test.txt",
FileAttributes.Archive |
FileAttributes.Hidden |
FileAttributes.ReadOnly
);