File Manipulation

I need to write a program to update a nother program. I need to find out if a certain directory exists, then if a certain file in this directory exists and then replace it.

Question: Where can i find units/functions that can do the file manipulations/searches I need to do?

Comments

  • : I need to write a program to update a nother program. I need to find out if a certain directory exists, then if a certain file in this directory exists and then replace it.
    :
    : Question: Where can i find units/functions that can do the file manipulations/searches I need to do?
    :
    To check if a file exists you need the FileExists() function in the SysUtils unit. The DirectoryExists() in FileCtrl unit checks if a directory exists. Alternatively you can also use the FindFirst(), FindNext() and FindClose() functions (also SysUtils). As far as I know are all these functions standard parts of Delphi.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion