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

Reply via email to