View Full Version : Resolved FileStream

10-01-2011, 11:29 PM
Hey All,
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" (http://msdn.microsoft.com/en-us/library/system.io.filestream.aspx) 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