Networking Forums

Networking Forums > Computer Networking > Linux Networking > file open

Reply
 
 
munish.nr@gmail.com
Guest
Posts: n/a

 
      11-25-2005, 09:32 AM
HI all,

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..

any help is highly appreciated...

thanks,
Munish Nayyar
emanshu "IM"

 
Reply With Quote
 
 
 
 
Hans-Juergen Lange
Guest
Posts: n/a

 
      11-25-2005, 09:41 AM
(E-Mail Removed) wrote:
> HI all,
>
> 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..
>


Hi,

open the file exclusive. It's a bit/enum/ whatever. Documented in C++
iostream or any of this sort of classes. Reading the man pages or a book
definitly helps.


BR
Hans-Juergen Lange
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who has a file open Jean Paul Mertens Windows Networking 7 09-05-2006 06:01 AM
Utility to see who has file open? jtpryan@gmail.com Windows Networking 4 05-24-2005 08:20 AM
open NFS file without block Cheng Huang Linux Networking 1 09-20-2004 07:27 PM
Open File Locks on File Server Jeff Ehrmann Windows Networking 0 07-27-2004 08:16 PM
Identification of who has file open GM Windows Networking 0 07-15-2003 09:03 PM



1 2 3 4 5 6 7 8 9 10 11