Read/Write file at the same time

This is a discussion on Read/Write file at the same time within the C Programming forums, part of the General Programming Boards category; Here's my problem: I am acquiring some data from software Y as it runs. I am writing this data to ...

  1. #1
    carpe diem
    Join Date
    Jan 2010
    Posts
    46

    Read/Write file at the same time

    Here's my problem:
    I am acquiring some data from software Y as it runs. I am writing this data to a .bin file with a C program.
    At the same time software Y is running, I want to run software X. Software X needs to be able to read Y's data in real-time.
    How can I read data from a file that is currently being written to?

  2. #2
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,047
    Quote Originally Posted by doia View Post
    How can I read data from a file that is currently being written to?
    with the select() system call

  3. #3
    carpe diem
    Join Date
    Jan 2010
    Posts
    46
    any good tutorials on how to use that?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 09:39 AM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  3. file & linked list run time error
    By Micko in forum C Programming
    Replies: 9
    Last Post: 03-06-2004, 02:58 AM
  4. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 05:57 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 05:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21