I have changed a gui app to use LazFileUtils rather than FileUtil, because LazFileUtils provides seamless UTF8.
However, the following no longer works unless I add FileUtil to the uses clause.
MyFilesize := FileSize(OpenDialog1.filename);
I get the error:
Compile Project, Mode: Normal, Target: WindSirf: Exit code 256, Errors: 1
mainscreen.pas(315,50) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "File"
Once FileUtil is added to the uses clause (immediately after LazFileUtils), everything works, but many warnings come up stating that FileUtil is deprecated and to use LazFileUtils.
Could someone please confirm this behaviour, and I'll raise a bug report to ask for filesize to be added to LazFileUtils.
I am using fpc 3.0.2 and laz 1.6 fixes on Linux Mint 18.1 Cinnamon on an Intel 64 bit platform