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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. multiple open of a single file

multiple open of a single file

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 Posts 2 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.
  • E Offline
    E Offline
    edel_ong
    wrote on last edited by
    #1

    hi! is there a way to allow a single file to be open multiple times? because in my C# application, there's always the error that states that the file can't be opened because it is already opened... thanks!

    C 1 Reply Last reply
    0
    • E edel_ong

      hi! is there a way to allow a single file to be open multiple times? because in my C# application, there's always the error that states that the file can't be opened because it is already opened... thanks!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      If a process has opened the file "exclusively" then other processes cannot access it. The file has to be opened in a shared mode for other files to be able to access it. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

      E 1 Reply Last reply
      0
      • C Colin Angus Mackay

        If a process has opened the file "exclusively" then other processes cannot access it. The file has to be opened in a shared mode for other files to be able to access it. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

        E Offline
        E Offline
        edel_ong
        wrote on last edited by
        #3

        How do i do it? Is there an existing code to set an opened file to shared mode?

        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