"Frédéric Galusik" <fr...@salixosnospam.org> wrote in message news:j8j77l$pfv$1...@digitalmars.com... > Hi, > > Can someone give me a clue on why nothing is printed to stdout ? > > I wish a list of files with their size. > > code: > // > import std.stdio; > import std.file; > > void main(string[] args) > { > foreach (DirEntry e; dirEntries(".", SpanMode.shallow)) > { > writeln(e.name, "\t", e.size); > } > } > // > Build with (dmd2): > dmd -w test.d >
My aplogies it you already know this, It's not my intention to be patronizing: You did run the resulting executable, right ( ./test )? And there are files in the dir its beng run from?