Directory.GetFiles(folderpath) purpose

What does the Directory.GetFiles(folderpath) method does?

from C# Directory.GetFiles Example (Get List of Files) - Dot Net Perls

Directory.GetFiles. This returns the file names in a folder. It returns a string array—this contains the full paths of all the files contained inside the specified directory.

@manojmano24

Directory.GetFiles will returns the File path of the files, you need to use for each to see that, below is the example

Thanks

Hey Thanks @msan.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.