Hi,
I'm trying to develop a program that will take one HTML file and from there open all child windows, copy the text on that HTML page and put it all into a new text file. I would do this manually but I have 2200 HTML pages to go through.

Essentially what I need it to do is take the first HTML page find the links and then copy all text from each child page from these embedded links into one, or at least return the filenames of the child pages, then I could use a simple file append program.

For example,

A
B C
DE F G
H I
J

This should return A BDE CGIJ FG in one file . left or right it doesn't matter.

Anyone have any idea on how I could approach this.

Thanks,
Apple

Use regex to parse out the links and push them onto a stack, pop the stack, get that page and gather the text or whatever, continue through the stack.