Ok, so I am parsing a text file. Here is some of the data. I already have the code to pull this into a string array. Problem is this array can vary in size based on the size of the zoneset. Ideally I run through the file, count the lines I need then create the array and go back and start reading stuff into it. However I am using StreamReader and I don't think there is a way to mark a position on the stream and move back to it. How would you do it? Just create a dynamic array and if I need more space then add more?
zoneset name ERM_Config vsan 1
zone name DS4000_B_MIRROR vsan 1
* fcid 0x040100 [pwwn 20:07:00:a0:b8:19:53:20]
* fcid 0xee0000 [pwwn 20:07:00:a0:b8:18:d1:3f]
zone name JP550_B vsan 1
* fcid 0x040000 [pwwn 20:07:00:a0:b8:19:53:1f]
* fcid 0x040400 [pwwn 10:00:00:00:c9:46:ec:8b]
zoneset name ERM_Config vsan 1
zone name DS4000_B_MIRROR vsan 1
* fcid 0x040100 [pwwn 20:07:00:a0:b8:19:53:20]
* fcid 0xee0000 [pwwn 20:07:00:a0:b8:18:d1:3f]
zone name JP550_B vsan 1
* fcid 0x040000 [pwwn 20:07:00:a0:b8:19:53:1f]
* fcid 0x040400 [pwwn 10:00:00:00:c9:46:ec:8b]

What you suggested looks better. And I know enough C,C++ etc to know what it was. I can read about half a dozen languages. Just can't write in any of 'em. 
Comment