view tangotests/files1.d @ 193:aca17e55b7a5 trunk

[svn r209] Fixed: exotic array to pointer casts were broken. Changed: classes now have opaque vtables.
author lindquist
date Mon, 12 May 2008 18:44:11 +0200
parents 1856c62af24b
children
line wrap: on
line source

module tangotests.files1;

//import tango.io.Stdout;
import tango.io.File;

void main()
{
    auto file = new File("files1.output");
    char[] str = "hello world from files1 test\n";
    void[] data = cast(void[])str;
    file.write(str);
}