CFanatic

Go Back   CFanatic > Programming > MFC Programming

Join CFanatic Forum Now

how to read txt files in unknown folders topic posted under MFC Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2007, 01:19 AM
Junior Member
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
zl2k is on a distinguished road
| More
how to read txt files in unknown folders

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
Reply With Quote
  #2  
Old 07-16-2007, 12:48 AM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,158
Thanks: 48
Thanked 62 Times in 43 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: how to read txt files in unknown folders

You should be using the composite design pattern to make the traversal through the tree structure.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about so files ftom2 C++ Programming 1 08-18-2008 02:28 AM
read file n spot blank char n re write file witout extra blank dev1910 C++ Programming 1 12-17-2007 12:43 AM
Writing/reading 'records' to/from files. rpaul Introduce yourself 1 11-10-2007 12:10 PM
ShellExecute can't open files that WinExplorer can hsifelbmur MFC Programming 0 09-20-2006 03:20 AM
Read before you post! shabbir Help & Support / Suggestion & Feedback 0 09-10-2006 02:27 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:50 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board