Thread: Read/Write file at the same time

  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,059
    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, 08: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, 04:57 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM