TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version: 1.0
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Tom Moran <[log in to unmask]>
Date: Sat, 1 May 2004 22:57:02 -0700
Content-Type: text/plain; charset="us-ascii"; format=flowed
Reply-To: Tom Moran <[log in to unmask]>
Parts/Attachments: 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