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.
Adam D. Ruppe via Digitalmars-d-learn Thu, 29 May 2014 13:26:41 -0700
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.