file is updated continuous by server

We have written code in which we run the command to specific server which generate resultant output.The file is generate but server continuous update the file.
is there any way to identify that server has finished file writing.
If the server closes the file after each update, you could use filesystem event notification (inotify with IN_CLOSE_WRITE on Linux - I like using it through boost.asio, like so: ).

Actually, if it's continuously modified without closing, you could watch IN_MODIFY, but the data may be inconsistent.
Last edited on
Thanks for reply.Sorry but sys/notify.h and boost header file do not it. is there way to get the same functionality?.
Thx I got permission to install library and it works fine for me.. thx a lot for your reply
Topic archived. No new replies allowed.