Read txt file by extension?

@Gokul001
the following error is occurring:

Read Text File: The syntax for the file name, directory name, or volume label is incorrect. : ‘C:\Users\pinhem2\OneDrive - Medtronic PLC\UiPath\ProcessaDOcNumC:\Users\pinhem2\OneDrive - Medtronic PLC\Desktop\PDF Files’

I did it as follows:
Directory.GetFiles(Environment.CurrentDirectory+“C:\Users\pinhem2\OneDrive - Medtronic PLC\Desktop\Arquivos PDF",”*.TXT")(0)

1 Like