How to embed static strings to a D program?

Ky-Anh Huynh saigon at example.net
Mon Oct 16 05:34:13 UTC 2017


Hello,

I want to use some static contents in my program, e.g, a CSS 
file, a long listing. To help deployment process I'd like to have 
them embedded in the final binary file.

Is there any convenient way to support this? Maybe I need a 
tool/library to load file contents and generate D-code at 
run-time ?

Thanks for your reading.


More information about the Digitalmars-d-learn mailing list