Thread: synchronous i/o URGENT HELP PLZZZ

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

    Exclamation synchronous i/o URGENT HELP PLZZZ

    Right now I have a process writing a file and having another .exe come in and read that file and save the data to a buffer.
    I was just told the i/o process needs to be synchronous, so how exactly do I access a file that is being written to? THIS IS REALLY URGENT if anyone can help me. I can't find any good examples of "select system call" and have no idea how to use it.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    How To Ask Questions The Smart Way

    It's also a fairly unanswerable question without you telling us which OS/Compiler you're using.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    carpe diem
    Join Date
    Jan 2010
    Posts
    46
    sorry. I'm using Visual Studio.NET Windows XP

  4. #4
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    Quote Originally Posted by doia View Post
    Right now I have a process writing a file and having another .exe come in and read that file and save the data to a buffer.
    I was just told the i/o process needs to be synchronous, so how exactly do I access a file that is being written to? THIS IS REALLY URGENT if anyone can help me. I can't find any good examples of "select system call" and have no idea how to use it.
    Had you Google'd, you would have come across this primer on select().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Synchronous and asynchronous I/O
    By starcatcher in forum Windows Programming
    Replies: 4
    Last Post: 04-11-2010, 10:57 PM
  2. Replies: 8
    Last Post: 03-23-2010, 12:23 AM
  3. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  4. Urgent!! I/O problem with linked list
    By Strait in forum C++ Programming
    Replies: 1
    Last Post: 02-20-2005, 08:45 PM
  5. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM