1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to read txt files in unknown folders

Discussion in 'MFC' started by zl2k, Mar 30, 2007.

  1. zl2k

    zl2k New Member

    Joined:
    Mar 30, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    zl2khi, all
    I am given a root folder, there are sub-folder and sub-sub-...folders under the root folders. There are also many txt files at any level of the folders. How can I automatically visit all those txt files? The structure of the folder tree is unknown. Thanks for help. I am using gnu c++.
    zl2k
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
    You should be using the composite design pattern to make the traversal through the tree structure.
     

Share This Page