[TriLUG] Limit to command line arguments?

Warren Myers volcimaster at gmail.com
Sat Oct 22 14:20:02 EDT 2005


It's a kludgy answer, but I did something like under Windows, where there's
a system call that takes the file specifier pattern (like *.CAD) and
generates a listing of all the files matching that pattern in a temp file,
then processes them in order.

Sample source here: http://warrenmyers.com/code/C/grabline.cpp

Don't know if that is quite what you're looking for, but it may help.

WMM

On 10/22/05, Randall Barlow <rpbarlow at eos.ncsu.edu> wrote:
>
> Warren Myers wrote:
>
> >Can you do something along the lines of <progname> *.CAD?
> >
> >
> I've thought about that too. I'm fairly new to C++ programming, so I'd
> just have to figure out how to get a list of files in the current
> directory. This might be a good option too, thanks!
>
> Randy Barlow
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



--
http://warrenmyers.com
"God may not play dice with the universe, but something strange is going on
with the prime numbers." --Paul Erdős


More information about the TriLUG mailing list