file open

This is a discussion on file open within the Linux Networking forums, part of the Linux Forums category; HI all, I an designing an application in C++. i want to open file requested by end user but i ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-25-2005
munish.nr@gmail.com
 
Posts: n/a
Default file open

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
  #2 (permalink)  
Old 11-25-2005
Hans-Juergen Lange
 
Posts: n/a
Default Re: file open

munish.nr@gmail.com 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

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



All times are GMT +1. The time now is 07:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0