string a = import("file.txt");

dmd yourprogram.d -Jlocation_of_file


so for example

dmd yourprogram.d -J.


if file.txt is in the same directory as the .d file.

Reply via email to