TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Tom Moran <[log in to unmask]>
Sat, 1 May 2004 22:57:02 -0700
text/plain (16 lines)
>work its way through all the files in a
>folder automatically

1) C:>for %a in (file*.*) do process %a
2) If your compiler expands wildcards on the command line into a list of files,
    C:>process file*.*
and in process.adb
   for i in 1 .. ada.command_line.argument_count loop
   end loop;
3) If you're using Claw, see Claw.Directories.For_Every_Directory_Entry
4) If you're using Posix, see the equivalent
5) I believe such a directory scanning operation is being added to the Ada
standard library, and there
is/are at least one implementation - search comp.lang.ada