Hello, guys.
455/5000
I’m trying to iterate through the files of a directory. I am using the System.IO.Directory.GetFiles () function to extract the file names in the directory and I am saving the function return in a System.String . To iterate through this array, I’m using a for each, with the system.string argument as well. But I am encountering this error:
For Each: Unable to cast object of type ‘System.String’ to type ‘System.String ’.
What can it be?