SyntaxFix
Write A Post
Hire A Developer
Questions
If your problem persist with all those answers, try to change the file attribute to:
File.SetAttributes(yourfile, FileAttributes.Normal);