In my C/C++ program I need to check if the file from what I read have been overwrote (its inode was changed or some new lines were added). If I’m now wrong fstat and fstat64 can be usefull only when I use Linux but not for windows. Is there any universal (to work for complex OSes) way to do this? And also can you tell me how do this using fstat64?
In my C/C++ program I need to check if the file from what I
Share
You can keep track of when the file was last written to know if it has been modified. The cross platform solution is using boost::filesystem. Windows doesn’t have fstat64 AFAIK.
http://www.boost.org/doc/libs/1_44_0/libs/filesystem/v2/doc/index.htm
}