Re: file open
- From: rlb@xxxxxxxxxxxxxxxxxxxxxx (Richard Bos)
- Date: Fri, 25 Nov 2005 10:52:35 GMT
"emanshu, Munish Nayyar" <munish.nr@xxxxxxxxx> wrote:
> I an designing an application in C++. i want to open file requested by
> end user but i want to reflect an error to user if file is already
> opened by some other application..
> will anybody tell me that how to know that the file is already open or
> closed..
Basically, you cannot. All you can know is whether _you_ can open this
file. If you cannot, C has no way to tell the difference between a file
that is opened by someone else, a file that you have no rights to, or a
filename that is invalid. Trying to reliably tell the difference would
be hard anyway, on most systems.
Richard
.
- References:
- file open
- From: emanshu, Munish Nayyar
- file open
- Prev by Date: Re: file open
- Next by Date: Re: A description of function parameters
- Previous by thread: Re: file open
- Next by thread: Re: file open
- Index(es):
Relevant Pages
|
Loading