Set File Access (Read/ReadWrite/Write)
-
Hi I want to set the File Access (e.g.
FileAccess.Read
) attribute in my C# program. I found theSystem.IO.File.SetAttributes()
Function but it seems not to be the right thing. I also do not want to use theFileStream
constructor. Is there another way? Thanks -
Hi I want to set the File Access (e.g.
FileAccess.Read
) attribute in my C# program. I found theSystem.IO.File.SetAttributes()
Function but it seems not to be the right thing. I also do not want to use theFileStream
constructor. Is there another way? ThanksCan you be more descriptive on what "it seems not to be the right thing" means? Keep in mind these are just access level permissions. NTFS will have another level that will alter the behavior.
-
Can you be more descriptive on what "it seems not to be the right thing" means? Keep in mind these are just access level permissions. NTFS will have another level that will alter the behavior.