Viji 0 Posted May 3, 2021 Hi, I need to check if a file is modified. In Rad studio 10.2 there is "Modified" property in TMemnIniFile. This property is not there in Xe buidler. Do we have any similar property in Xe Builder Share this post Link to post
FPiette 383 Posted May 3, 2021 32 minutes ago, Viji said: need to check if a file is modified Which kind of file? For which purpose? You can consider using FindFirstChangeNotification to get notified when the file changes. Share this post Link to post
Viji 0 Posted May 3, 2021 File type used is TMemIniFile, "Modified" property is not available for C++ Xe builder. Is there some similar property or function to check if a TMemIniFile is modified in C++ Xe Builder? Share this post Link to post
FPiette 383 Posted May 3, 2021 You want to check if the modification has been done using TMemIniFile properties or methods, or do you want to check for modification done outside of your application, for example when someone change the associated file using NotePad. Share this post Link to post
Guest Posted May 4, 2021 You have to explicitly update an TMemIniFile file that you made changes to. So that flag is an internal function of the TMemIniFile class and tells if the "file" has been modified in memory. It will not say anything on what is happening with an actual file. I just do UpdateFile before closing or .Free'ing so i never need to check that property. That said, what is you scenario that you need it, @Viji? Share this post Link to post