On Tuesday, 8 April 2014 at 15:52:23 UTC, Spacen Jasset wrote: > scope Stream file = new File(filename); That's a std.stream.File which is a class (implementing the Stream interface) which is a different animal from std.stdio.File, which is a struct.