Re: File Ex from std_stdio won't compile

2012-04-18 Thread Paul
On Wednesday, 18 April 2012 at 12:42:26 UTC, simendsjo wrote: On Wed, 18 Apr 2012 14:09:20 +0200, Paul wrote: I copied the code below from this site under the std.stdio library reference section and tried to compile it. I downloaded D2/Phobos. Compiler says "fileread.d(4): Error: undefine

Re: File Ex from std_stdio won't compile

2012-04-18 Thread simendsjo
On Wed, 18 Apr 2012 14:09:20 +0200, Paul wrote: I copied the code below from this site under the std.stdio library reference section and tried to compile it. I downloaded D2/Phobos. Compiler says "fileread.d(4): Error: undefined identifier File" If I add import std.stdio to the beginning

File Ex from std_stdio won't compile

2012-04-18 Thread Paul
I copied the code below from this site under the std.stdio library reference section and tried to compile it. I downloaded D2/Phobos. Compiler says "fileread.d(4): Error: undefined identifier File" If I add import std.stdio to the beginning it get ; expected, function declaration w/o return