Extracting file names from directory

  • Thread starter Thread starter Zach
  • Start date Start date
Z

Zach

Is there a way to extract the names of the files, present in a directory,
and add them to an array?

Thanks,
Zach.
 
Is there a way to extract the names of the files, present in a
directory, and add them to an array?

Directory.GetFiles gets an array with filenames.

It should not be a problem combining an existing
array with that array (but using a List<string> would
be a lot more elegant).

Arne
 
Arne Vajhøj said:
Directory.GetFiles gets an array with filenames.

It should not be a problem combining an existing
array with that array (but using a List<string> would
be a lot more elegant).

Arne

Yes it would be.

Zach.
 
Back
Top