Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   File Handling (http://www.go4expert.com/forums/file-handling-t16705/)

khajalid 29Mar2009 09:20

File Handling
 
In my project i have to access a *.txt file from two different programs. So, i want if one program is accessing the file then the other should wait ie both program should not access the file at same time.So, is there any way to know whether that file is being used by some other process or not.i m using turbo c under windows.

-regards.
Ankush Gupta

khajalid 29Mar2009 15:07

Re: File Handling
 
In my project i have to access a *.txt file from two different programs. So, i want if one program is accessing the file then the other should wait ie both program should not access the file at same time.So, is there any way to know whether that file is being used by some other process or not.i m using vc++ under windows.

-regards.
Ankush Gupta[/quote]

khajalid 29Mar2009 15:12

Re: File Handling
 
In my project i have to access a *.txt file from two different programs. So, i want if one program is accessing the file then the other should wait ie both program should not access the file at same time.So, is there any way to know whether that file is being used by some other process or not.i m using vc++ under windows.

-regards.
Ankush Gupta[/quote]

khajalid 29Mar2009 16:57

Re: File Handling
 
[resolved]


All times are GMT +5.5. The time now is 12:33.