Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. reading a file

reading a file

Scheduled Pinned Locked Moved C#
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cmarmr
    wrote on last edited by
    #1

    is there a way i can read a file that someone else has exclusive access to useing a streamreader thanks chad

    H 1 Reply Last reply
    0
    • C cmarmr

      is there a way i can read a file that someone else has exclusive access to useing a streamreader thanks chad

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      No, not really. If they opened the file exclusively then it's opened, well, exclusively. It needs to be opened with FileShare.Read or some flag containing FileShare.Read in order for you to read it. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

      C 1 Reply Last reply
      0
      • H Heath Stewart

        No, not really. If they opened the file exclusively then it's opened, well, exclusively. It needs to be opened with FileShare.Read or some flag containing FileShare.Read in order for you to read it. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

        C Offline
        C Offline
        cmarmr
        wrote on last edited by
        #3

        the reson i am asking is because we have a csharp app that can read files while other users have the files exclusive and i would love to know how that programmer did it (its an app that we got from another company) and i know the files are exclusive because if i try to open then i get and error but this program dose not thanks chad

        S 1 Reply Last reply
        0
        • C cmarmr

          the reson i am asking is because we have a csharp app that can read files while other users have the files exclusive and i would love to know how that programmer did it (its an app that we got from another company) and i know the files are exclusive because if i try to open then i get and error but this program dose not thanks chad

          S Offline
          S Offline
          StealthyMark
          wrote on last edited by
          #4

          cmarmr wrote: i would love to know how that programmer did it One word: Reflector[^].

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups