Tuesday, July 14, 2009

C++ file monitor?

what library and function would i use to detect size change and possibly content change of a running file?

C++ file monitor?
You mention linux compatible. However you are writing for linux only then you can look at "inotify". It's system call and you need a kernel beyond, if I recall, 2.6.12. Check you kernel version and do a web search for inotify if it isn't already in your man pages.
Reply:I think you want FAM, the File Alteration Monitor





http://oss.sgi.com/projects/fam/faq.html...





For windows an OS X you have to use different libraries - there's no cross-platform solution I know of.


No comments:

Post a Comment