On Fri, 27 Aug 2010 16:35:49 -0400, Don <nos...@nospam.com> wrote:

Steven Schveighoffer wrote:
On Fri, 27 Aug 2010 16:18:26 -0400, Andrei Alexandrescu <seewebsiteforem...@erdani.org> wrote:

On 8/27/10 13:01 PDT, Steven Schveighoffer wrote:
On Fri, 27 Aug 2010 05:36:32 -0400, Andrei Alexandrescu
<seewebsiteforem...@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.

Read the clarification in the question. Reopening the file for append was not required.

Oops I missed that. Then the other examples are not optimized ;) In particular, the C one reopens the file for appending.

-Steve

Reply via email to