General information
Title:
Reading sequential files
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only