I am developing a vb.net application.
I have made my own file and put in the system32 folder.
Now,I am trying to read same file which I have put in the folder with below code...
Try
Dim FileData As String = ""
Dim line As String = "'"
Dim readFile As System.IO.TextReader = New StreamReader("C:\Windows\System32\winApps.dll")
While True
.
.
.
Catch ex As Exception
Me.Close()
End Try
But whenever I run above code, its gives an error - at readFile statement...
Could not find file 'C:\Windows\System32\winApps.dll'.
but file do exist there...but if I change the files location code runs without an error.
I have administrative rights.
What I am missing ?