How to call external program in D

Raphaël Jakse raphael.jakse at gmail.com
Sat Nov 17 04:31:41 PST 2012


Le 16/11/2012 20:15, Sparsh Mittal a écrit :
> I am new to D.
>
> Can you please tell, how to call external program in D.
>
> Example: in C, one can do this:
> http://stackoverflow.com/questions/43116/how-can-i-run-an-external-program-from-c-and-parse-its-output
>
>
>
> I want to call an external program (e.g. ls or date) in D.
>
>
> Thanks

This is out of subject but for ls and date, you might want to get the 
informations directly in D.
See
  - http://dlang.org/phobos/std_date.html
  - http://dlang.org/phobos/std_datetime.html

  - http://dlang.org/phobos/std_file.html#dirEntries


More information about the Digitalmars-d-learn mailing list