hi all
have anyone any idea how can i make my program read 3 or 4 files ,in a folder.
i mean my input isn't only one file, it's a folder.
can the C++ do that?
ghadahelal
0
Light Poster
Recommended Answers
Jump to PostC++ doesn't know what a folder is. That kind of operation is dependent on the operating system, and the solution will use a system specific function or class of functions. So, what compiler and OS are you using?
Jump to Postyeah, its just like reading any other files. Just instead of the file name, but the path to the file. If your using windows you need two backslashes.
Jump to PostI mean lets say you have three text files in one folder.
the path for them would be:
c:\\<whatever>\\yourfolder\\file1
c:\\<whatever>\\yourfolder\\file2
c:\\<whatever>\\yourfolder\\file3
Jump to PostI'm reasonably sure that's not what he wants.
All 14 Replies
Narue
5,707
Bad Cop
Team Colleague
Sturm
270
Veteran Poster
ghadahelal
0
Light Poster
Sturm
270
Veteran Poster
Narue
5,707
Bad Cop
Team Colleague
Sturm
270
Veteran Poster
Narue
5,707
Bad Cop
Team Colleague
ghadahelal
0
Light Poster
Sturm
270
Veteran Poster
ghadahelal
0
Light Poster
Sturm
270
Veteran Poster
ghadahelal
0
Light Poster
Salem
5,138
Posting Sage
ghadahelal
0
Light Poster
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.