Is there a way of getting only two specific file formats from a directory? I am currently attempting to read .docx and .pdf from a folder with
Directory.GetFiles but there is a validation error:
I can specify one format, but not the other. How would I get both formats into one array?
Thanks in advance.