>Jarrett Billingsley Wrote:
> Easier even than that. The import() expression allows you to include
> arbitrary data in your app.
>
> const data = cast(byte[])import("filename.dat");
>
> All you have to do is pass the -J flag to DMD to indicate the path
> where filename.dat lives. import() returns a string (a char[]) but
> you can cast it to whatever type you want, like I've casted to byte[]
> here. :)
Oh...Thanks for the answer...
- Resource File Accessing Plumm
- Re: Resource File Accessing Jarrett Billingsley
- Re: Resource File Accessing Nick Sabalausky
- Re: Resource File Accessing Daniel Keep
- Re: Resource File Accessing Andrei Alexandrescu
- Re: Resource File Accessing Lionello Lunesu
- Re: Resource File Accessing Bill Baxter
- Re: Resource File Accessing Plummtw
