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.

I believe TC3 compiler supports dos.h and I think it includes _dos_findfirst() and _dos_findnext(). Here is an example program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.