944,089 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3432
  • C++ RSS
Mar 27th, 2007
0

please help search files in folder

Expand Post »
am using tc3
i want to search files in a folder named "project" on c drive
this folder contains some text files namely
2-2AA
2-2BA
2-2CA
2-2DA
LOG
i want to search how many files are there excluding LOG so that i can open them one by one and manipulate them
like f.open("c:\\project\\2-2AA.txt"......)
please suggest a code that can be used to search files in a folder or how c++ handles this.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gamodg is offline Offline
15 posts
since Mar 2007
Mar 27th, 2007
0

Re: please help search files in folder

I believe TC3 compiler supports dos.h and I think it includes _dos_findfirst() and _dos_findnext(). Here is an example program.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,957 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Output on program termination
Next Thread in C++ Forum Timeline: gotoxy





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC