1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

File Handling

Discussion in 'C' started by khajalid, Mar 29, 2009.

  1. khajalid

    khajalid New Member

    Joined:
    Mar 29, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. khajalid

    khajalid New Member

    Joined:
    Mar 29, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    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]
     
  3. khajalid

    khajalid New Member

    Joined:
    Mar 29, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    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]
     
  4. khajalid

    khajalid New Member

    Joined:
    Mar 29, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0

Share This Page