Check files update

Hi,

I want to monitor a file, and check what has been added to it.

etc: The text file contain "abcdef"
And now it contain "abcdefghi".

I need to know what had been added, is there any function that can do this?

Thx for helping me.

Yes, see help on 'tail' command.

I need it in C programming.

In unix shell i can do it easily also..thx anyway!

You can use fstat() to determine the size of a file.