Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    1,742
    Thanks
    41
    Thanked 191 Times in 190 Posts

    FileStream

    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 02: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
  •