[fpc-pascal]Read from command line

Olaf Leidinger leidola at newcon.de
Sun Sep 7 12:52:18 CEST 2003


Hi Paul!

 
> How do you do that in FPC in Linux?
>  
You can use something like this:


program argtest;

var i: integer;
   
begin
   for i := 0 to argc do
   begin
      writeln (argv[i]);
   end;
end.

Ciao,


Olaf





More information about the fpc-pascal mailing list