Anonymous user
Include a file: Difference between revisions
D entry
(D entry) |
|||
Line 43:
</lang>
=={{header|D}}==
D has a module system, so usually there is no need of a textual inclusion of a text file:
<lang d>import std.stdio;</lang>
To perform a textual inclusion:
<lang d>mixin(import("code.txt"));</lang>
=={{header|Delphi}}==
<lang Delphi>uses SysUtils; // Lets you use the contents of SysUtils.pas from the current unit
|