I am writing to a text file. The problem is, is that sometimes the file is going to be read only. How do I remove the ReadOnly attribute from the file before writing to it. Here is a code snippet. This piece of code will only write to the file if the file is not read only. I want to replace this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.