Array basics - Populating with loop

Posted by madlan on Stack Overflow See other posts from Stack Overflow or by madlan
Published on 2010-06-17T17:19:42Z Indexed on 2010/06/17 17:23 UTC
Read the original article Hit count: 246

Filed under:

Hi, I'm looping through a zip file trying to add the file name of each file within. Is this the correct method?

Dim ZipNameArray(?)

    Using zip As ZipFile = ZipFile.Read(ZipToUnpack)

        For Each file In zip

              ZipNameArray(?) = file .FileName

        Next
End Using

I do not know the array size until I start looping through the zip (To work out the number of files within). How do I increment the Array? file is not a number? (It's a ZipEntry)

© Stack Overflow or respective owner

Related posts about vb.net