I would get an instance of FileInfo for the file and then set the IsReadOnly property to false (as per the documentation here: http://msdn.microsoft.com/en-us/library/system.io.fileinfo.isreadonly.aspx ):
new FileInfo("path").IsReadOnly = false;
If you insist on using the static GetAttributes and SetAttributes methods in the File class, you can simply do this:
File.SetAttributes("path",
File.GetAttributes("path") & ~FileAttributes.ReadOnly);
, , - ( FileAttributes.ReadOnly), ( ~), , ( File.GetAttributes( "" )).