How to Create text file and make it's Properties Hidden and Archive and ReadOnly using C#?
FileStream fs = File.Create("test.txt");
fs.Close();
File.SetAttributes(
"test.txt",
FileAttributes.Archive |
FileAttributes.Hidden |
FileAttributes.ReadOnly
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With