chkaufmann 18 Posted October 31, 2024 Since some years there is the unit IOUtils.pas. There are many duplicated functions: Â ExtractFileExt()Â Â -Â Â TPath.GetExtension() ExtractFileName() - TPath.GetFileName() FileAge()Â - TFile.GetLastWriteTime() Â My code uses SysUtils.pas in most places, and I'm not sure if I should change this to use the functions from the new unit IOUtils.pas because the others will be deprecated at some point? And is there a comparisation table anywhere? It looks like not all functions work exactly the same way especially when it comes to throw exceptions. Â Christian Share this post Link to post
Davide Angeli 44 Posted October 31, 2024 I think that initially the unit System.IOUtils.pas was created to provide platform-safe functions (windows, mac, android etc). Now I see many IFDEFs even in SysUtils... Share this post Link to post