Brett McCoy wrote: > > On Wed, Jul 16, 2008 at 9:59 AM, Knowledge Seeker > <[EMAIL PROTECTED] <mailto:knowledgeseeker78%40gmail.com>> > wrote: > > > Process A creates a txt file containing a line "A quick brown fox jumps > > over the lazy little dog" > > Process B reads the txt file and displays it on the screen and then > > deletes the file. > > Process A again does .... process b again does the same ... > > Are you doing this with processes or multiple threads in a single process? > > -- Brett > ---------------------------------------------------------- > "In the rhythm of music a secret is hidden; > If I were to divulge it, it would overturn the world." > -- Jelaleddin Rumi > > > Messages in this topic > <http://groups.yahoo.com/group/c-prog/message/67327;_ylc=X3oDMTM2Mm9jbDhvBF9TAzk3MzU5NzE0BGdycElkAzEwMTMxMzkEZ3Jwc3BJZAMxNzA1MDA2Nzg4BG1zZ0lkAzY3MzMyBHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTIxNjIxNzUxMQR0cGNJZAM2NzMyNw--> > > (6) > <http://groups.yahoo.com/group/c-prog/post;_ylc=X3oDMTJxNWRkbGJ0BF9TAzk3MzU5NzE0BGdycElkAzEwMTMxMzkEZ3Jwc3BJZAMxNzA1MDA2Nzg4BG1zZ0lkAzY3MzMyBHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTIxNjIxNzUxMQ--?act=reply&messageNum=67332>
Guys guys .... forget about Process A.......just think about process B. Process B has to create a watch thread that look for directory modifications. Whenever a file gets copied the directory structure changes, the thread should come to know that a file has been copied, now the program will open the directory and read the text files, dump over the console, and delete the file.
