Hi all,
I'm currently working with a file which is read into an array (single dimension) string e.g. MyArray() As String.
The format of the file is something like this:
and so on with hundreds of PACKAGES and typically >40000 lines (array elements).
NOTE: End of line treatment is CRLF in the original file.
I would like to know if it is possible to delete a block of elements between and including the "begin members" and "end members" in one go.
Currently I am testing looping through each PACKAGE, finding the "begin member" line deleting each individual line and resizing , preserving array until "end member" for each function and it is taking ages .
However, if it were possible to delete element "chunks" at a time and then resize/preserve array for each PACKAGE rather than for each line then maybe code could be faster.
Rough example of current code (being tested):
In case you're wondering why I want to delete these sections.
I am really only interested in each "package name" and corresponding info in the "begin parts" and "end parts" and will do some processing of this remaining info. Reducing MyArray() size by deleting unnecessary elements may help speed up subsequent post processing of the info.
I basically want to be left with the following before starting to process array with other functions:
Any help offered or ideas in the most efficient way of deleting the unnecessary blocks of elements would be appreciated.
nutty
Bookmarks