Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: FileStream

  1. #1
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Thanked 210 Times in 209 Posts


    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" 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
    Last edited by alykins; 10-02-2011 at 03:47 AM.

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts