✔ 最佳答案
To search a tree and its branches, the common way is to call a recursive function that searches a lower level of the branch. At each branch level, the recursive function is called so that a lower level is searched until there is no further lower level.
Visit this answer for reference:
http://hk.knowledge.yahoo.com/question/?qid=7007060801276
and take note of the TraverseFolders function.
2007-09-02 06:29:30 補充:
I am telling you how to navigate through a tree and its branches by calling a recursive function. I don't know that you do not know the easy stuff like finding a substring within a string.Search for VB's Instr(), java's substring(), strstr(), strchr(), strrchr(), SubString() in C.
2007-09-02 06:31:44 補充:
The answer link I showed you displays only names that ended with ".txt". Isn't that SIMILAR to what you want?
2007-09-02 06:33:15 補充:
It is not my fault if I am not answering your question. It is YOU not stating your question properly.
2007-09-05 04:15:43 補充:
I am sorry If I sounded too harsh to you. Nobody is perfect. Let us hope all will benefit from this forum.