string [] filenames = openFileDialog1.FileNames;
How can I read this array?
Would I need to set each file path to its own string???
I’m clueless.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean access the elements in the array?
As pointed out by another answer you can also use a foreach to access each item
When you access filenames[some_index] you access the string already so there’s no need to save it to another variable to work with it same applies to foreach loop.