opened file

Discussion in 'C++' started by Piotr, Nov 25, 2003.

  1. Piotr

    Piotr Guest

    How to check if file has already opened by another process ?
    thx
     
    Piotr, Nov 25, 2003
    #1
    1. Advertising

  2. Piotr

    Mike Wahler Guest

    "Piotr" <> wrote in message
    news:bq01db$1o9$...
    > How to check if file has already opened by another process ?


    You use some platform-specific method. Cannot be done
    with standard C++, which has no notion of 'process'.

    The only thing which can be determined about opening a file
    in standard C++ is, was the file opened successfully or not.
    The *reason* for a failed open (which could be any of a
    variety of reasons, e.g. file does not exist, locked by
    another process, insufficient user 'permission', etc.) cannot
    be determined with standard C++.

    Consult your platform and/or implementation documentation.


    -Mike
     
    Mike Wahler, Nov 25, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Umlja0w=?=
    Replies:
    1
    Views:
    421
    Curt_C [MVP]
    May 28, 2004
  2. SL
    Replies:
    2
    Views:
    467
    S. Justin Gengo
    Dec 12, 2005
  3. Peter Blatt
    Replies:
    0
    Views:
    464
    Peter Blatt
    Sep 25, 2004
  4. fitwell
    Replies:
    2
    Views:
    629
    fitwell
    Nov 13, 2003
  5. CJM
    Replies:
    7
    Views:
    188
    Mark J. McGinty
    Mar 30, 2006
Loading...

Share This Page