Method to continuously read and display data in a file as it is updated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • y khan
    New Member
    • May 2011
    • 2

    Method to continuously read and display data in a file as it is updated

    My c# program is continuously updating a file and my c program is reading it.But my c program picks up the data from the file to the point when it is started. While the c# program is modifying the file even when the c program reads the file. So i need a method where the c program simultaneously reads and displays the data in the file as it is updated by the c# program. Please help.
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    This is called inter-process communication. There are several standard methods of synchronizing access to the file.

    Being that you're using C# I suspect you're working in Windows so this article seems relevant. You can drill into it to get more details.
    The Windows operating system provides mechanisms for facilitating communications and data sharing between applications. Collectively, the activities enabled by these mechanisms are called interprocess communications (IPC).

    Comment

    Working...