[fpc-pascal] CopyFile for FreePascal without Lazarus?

Darius Blaszyk dhkblaszyk at gmail.com
Sat Apr 20 12:50:48 CEST 2019


Here’s another implementation using blockread and blockwrite. The main thing missing is setting the file attributes on *nix systems.

Rgds Darius 


https://github.com/daar/pmake/blob/master/pmake/pmake_utilities.pas

Verstuurd vanaf mijn iPhone

> Op 20 apr. 2019 om 11:23 heeft Joost van der Sluis <joost at cnoc.nl> het volgende geschreven:
> 
> Op 18-04-19 om 13:04 schreef James Richters:
>> How would I use this LazUtils Package with just FPC?   Is there way to download it by itself? Or would I have to Install Lazarus somewhere, go find the unit and copy it in with all my FPC Units?
> 
> Lazutils could also be installed with Fppkg. Just download the sources, locate the fpmake.pp (components/lazutils) make sure that that directory is the current directory and run 'fppkg install'.
> 
> Thereafter you can use the Lazutils-units in all your fpc-applications.
> 
> If you update your compiler (trunk of fixes), call 'fppkg fixbroken' to re-compile the packages which are installed.
> 
> If you update to a really new version of the compiler, you have to install the package again.
> 
> Regards,
> 
> Joost.
> 
> -- 
> http://lazarussupport.com - Your donation helps to push Free Pascal and Lazarus forwards.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190420/57769031/attachment.html>


More information about the fpc-pascal mailing list