stanigator
stanigator

Reputation: 10944

Reading File tags/properties in c++

I know there are file comparison tools out there to determine whether files were added, deleted, or modified when comparing between two folders. However, I'm wondering how you would approach reading the file properties programmatically to see when the file is created/modified/accessed (like how you can find these information by viewing the file properties in a file explorere). Thanks in advance for your input.

Upvotes: 2

Views: 2374

Answers (2)

On Windows you call FindFirstFile() WinAPI function. On Linux it's stat/fstat.

Upvotes: 1

thorsten müller
thorsten müller

Reputation: 5651

use the file info class of my current library of choice, for example: QFileInfo

Upvotes: 1

Related Questions