To remove just the ReadOnly attribute, you’d do something like this:
File.SetAttributes("C:\\myfile.txt", File.GetAttributes("C:\\myfile.txt") & ~FileAttributes.ReadOnly);
This will remove the ReadOnly attribute, but preserve any other attributes that already exist on the file.