I am trying to search for files in Directories.
like, i have 10 directories..... and consider directory 1, which has 2 files..
this is same with all the files...
i want to get a string from each of these files from 10 directories... to be written to a seperate file, in C++.
I have been trying to do this.... any help will be greatly appreciated.
Thank you
usausa
0
Newbie Poster
Recommended Answers
Jump to PostCan you get a string from one file? If so then can you get a string from more than one file in the same directory? Do you have to search for the files according to some pattern, or do you have a list of filenames? I see this question a …
Jump to PostIn that case the Win32 API would probably be your easiest solution. You can start browsing from here.
Jump to PostUh, that's not C++, it's Java.
Jump to PostIn another forum I posted a link to an FAQ: "Accessing a directory and all the files within it". Did you follow the link?
All 15 Replies
Dogtree
23
Posting Whiz in Training
usausa
0
Newbie Poster
Dogtree
23
Posting Whiz in Training
usausa
0
Newbie Poster
Dogtree
23
Posting Whiz in Training
usausa
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
usausa
0
Newbie Poster
Dogtree
23
Posting Whiz in Training
Dave Sinkula
2,398
long time no c
Team Colleague
usausa
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
usausa
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
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.