Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading sequential files
Message
De
10/10/2002 13:57:02
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Reading sequential files
Divers
Thread ID:
00709980
Message ID:
00709980
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform