counting_pine wrote:Obviously, "</virtualhost>" would have to be the last line in the file to work properly.
That, unfortunately, is not a guarantee with either my application nor with my example. There is every likelyhood that there will be more data beyond the last "</virtualhost>" or whatever.
In the case of my example, a "<virtualhost>" block can be anywhere in the httpd.conf file. Multiple such blocks can be scattered all over the file. Why
you would do that is beyond me but since it is
possible I must account for it. Same with my application. The data I'm seeking is located in a block and can be located anywhere in the file in any order. Neither the httpd.conf example file nor my application data file can be sorted as they are live files. Even so, a sort would require the EOF to function.