I was able to find my problem. I was drilling to the path of the file but leaving out the name of the file itself. (SLAP as he hits his forhead with the palm of his hand)
Thanks for your help!
Hi,
I have an Imports statement bringing in System.IO
snippet
<code>
Dim fw As StreamWriter
FilePath = "c:\"
fw = New StreamWriter(FilePath, True)
fw.Write("Hello World")
fw.Close()
</code>
Hi,
I have created a WinForms app that needs to save a file to my hard
drive.
Whenever I try to save a file I recieve an "access to the path <my
path> is denied" error.
I have used the .Net configuration wizard to check the permissions
granted to my assembly. The wizard reports...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.