Hi!

I have read that I can use inotify on linux, using c language, to monitor file systems. However, I am unsure how I would implement such a system. I looked up websites but it did not really help. I was wondering if someone can just show me how to mointor a text file. Let's say if the content of the file is modified, I should see a message in the main infinite loop.

Thanks very much for any help that can be provided.

You mean similar to tail -f ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.