Read the error message, it's pretty clear:
Access to the path 'C:\1_temp\Testfile.rtf' is denied.
The file is not available because it's already been opened in the method. When you use File.Create, it creates or empties a file, opens it for writing, and returns the stream.
If you try to follow that with a second access, it will fail, because the file is locked to the first stream until that is closed.
And any code which includes
On Error Resume Next
should be taken outside and shot ...