Vidyalelo
C# Programming · Q32

File Handling and Input Output in C Sharp

Programming · C# Programming · question 32

Q32

What is the purpose of the Directory.GetFiles() method in C#?

A.
Moves all files from one directory to another
B.
Deletes all files in a specified directory
C.
Retrieves the names of files in a specified directory that match a specified pattern
Answer
D.
Retrieves the names of all files in a specified directory

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board