Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading sequential files
Message
From
10/10/2002 13:57:02
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Reading sequential files
Miscellaneous
Thread ID:
00709980
Message ID:
00709980
Views:
51
Hello

I am currently working on an application that works in conjunction with other applications running on the same machine via text files.

When I want to trigger the other application I create a text file with status information in it.

The other application in turn will read this file then create a file in response to the one that I created that I will monitor for.

When I am monitoring for this file which I don't believe will be very big
what would be the best way.

Should I check for the existance of this file and the moment it exists
then read it, or should I wait alittle while before reading it?

How about this, check for the existance of the file say every second.
Then query the file for it's size, then compare it to the size from
the previous second and if they are equal then that means that the entire file has been created, if not then keep querying the file for its size.

Does anyone out there have any thoughts on this

Thank You

Gary
Next
Reply
Map
View

Click here to load this message in the networking platform