0

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

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by WaltP
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.