Board index » delphi » List of files in a directory

List of files in a directory

How to do to stock in a table the file's names of a directory ? (Delphi
2). Thanks.
--

Jean-Claude BRUEL

Roquefort les Pins (Alpes Maritimes) FRANCE

E-Mail : jcbr...@geneanet.org
Home Page : http://wwwperso.hol.fr/~jcbruel

 

Re:List of files in a directory


Quote
Jean-Claude BRUEL wrote in message <3439FE2C.3...@hol.fr>...
>How to do to stock in a table the file's names of a directory ? (Delphi
>2). Thanks.
>--

Just the same way you'd do that in Delphi 1 - use FindFirst, FindNext,....
FindClose with a proper filemask and add the result of FindFirst and each
FindNext to the table.

Hope That Helps

Nikolai Sklobovsky,
Programmer-Analyst,
Retail Technologies Intl
ni...@retailpro.com

Re:List of files in a directory


In article <3439FE2C.3...@hol.fr>, jc.br...@hol.fr says...

Quote

>How to do to stock in a table the file's names of a directory ? (Delphi
>2). Thanks.
>--

   Look at the findfirst, findnext functions and use them to load the
list.

-jam

Other Threads