TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

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

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

Print Reply
Subject:
From:
Tom Moran <[log in to unmask]>
Reply To:
Tom Moran <[log in to unmask]>
Date:
Sat, 1 May 2004 22:57:02 -0700
Content-Type:
text/plain
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
     process_one(ada.command_line.argument(i));
   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

ATOM RSS1 RSS2