Recent

Author Topic: FileUtil not found  (Read 4765 times)

Peterkl

  • New Member
  • *
  • Posts: 22
FileUtil not found
« on: September 29, 2015, 09:42:26 pm »
Hello guys,

I'm trying to write a simple command line program, I need to copy files, and I really want to use copyfile() ; which is in the "Filutil" unit.

The compiler cannot find the filutil unit which should included in the main package. I know I maybe have to update my fpc, but I do not know how to do it and I can't find guides on the internet.

Do you actually know how to solve this problem or how to update the fpc package ?

Thanks in advance  :)

GetMem

  • Hero Member
  • *****
  • Posts: 3501
Re: FileUtil not found
« Reply #1 on: September 29, 2015, 10:08:24 pm »
1. Menu-->Project-->Project Inspector-->Add-->New Requirement-->Package Name-->LazUtils-->Create New Requirement
2. Add fileutil to the uses caluses

Peterkl

  • New Member
  • *
  • Posts: 22
Re: FileUtil not found
« Reply #2 on: September 29, 2015, 10:15:49 pm »
Thank you so much m8, it worked like a charm,

Cheers :)