|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Hidden Attribute on file affects security?Hi ---
I tried to write an application that uses a config file. When I set the Hidden attribute on the config file, I found that my application was no longer able to write (System.IO.File.WriteAllText as well as System.IO.File.StreamWriter), and also not able to delete (System.IO.File.Delete), the file. I get an access denied error. However my application can remove the Hidden attribute, after which writing and deleting work properly. Is this expected behavior? If so, can someone point me to the documentation that explains the relationship between hiddenness and file access? thanks, denise |
|||||||||||||||||||||||