Synchronizing 2 Processes to access a text file simultaneously

From: arvind (
Date: 01/13/05

Date: Thu, 13 Jan 2005 02:02:36 -0800

Ho do I synchronize 2 different process one of which is
driven by a thread, to access a text file, simultaneously ?
Can any one help me on this issue ?
Thanxs in advance.