Command line arguments and i/o with named files: Routines to access command line arguments are in Ada.Command_Line.
Here is a
simple example (cline.adb) which uses command line
arguments and named files and here is a
more complex example (text.adb) which does the same.