Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-01-2011, 10:29 PM #1
I am having an issue with the FileStream class... What I want to do is have it pull a file from a directory in my project... No matter what I do I get permission denied. I was trying to set the FileShare property but I am having a heck of a time doing so. Also I found the msdn "example" but this in my opinion is kinda crappy (unless I am seeing things wrong) and it is creating the FileStream (named "fs") "on the fly" (ie I prefer to declare my objects and their parameters...)
Does anyone have experience with this?
Edit: I resolved this. Using the StreamReader I was able to bypass permissions for Reading