file i/o in a variety of languages

Steven Schveighoffer schveiguy at yahoo.com
Fri Aug 27 13:01:07 PDT 2010


On Fri, 27 Aug 2010 05:36:32 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> D doesn't look half bad:
>
> http://stackoverflow.com/questions/3538156/file-i-o-in-every-programming-language-closed


Note that D's version doesn't follow the rules, you were supposed to  
re-open the file for appending, they just never closed it.

It also reads the first line into a buffer and then throws it away.  Does  
File have a way to skip a line?

-Steve


More information about the Digitalmars-d mailing list