Dear All
I really realy could not find by searching.. Please give your attention for this one.

1st of all, i need to deal with multiple files, but NOT inputting file name each time.
Two questions.
1) How to send more than one file to command line arguments.
2) Can I just indicate a folder name containing severeal files in it, and work any (or more than one) file in it.

Please feel free to share to deal with multiple files same time.
Or how to send several files to command line arguments and work on it.

I am new , please help me .
Thanks in advance.
Ted

How to send more than one file to command line arguments.

"Send"? Send how? From where? I assume you mean fileNAMES, not files? You want to do something like this??

./programname filename1 filename2 filename3 foldername

then have the C++ code parse the command line argunments and dowomething with them? You're going to have to provide more details.

but NOT inputting file name each time.

Sounds like that's NOT what you want to do.

Perhaps just this...?

./programname foldername

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.