file i/o in a variety of languages

Steven Schveighoffer schveiguy at yahoo.com
Mon Aug 30 05:29:34 PDT 2010


On Fri, 27 Aug 2010 18:03:19 -0400, Simen kjaeraas  
<simen.kjaras at gmail.com> wrote:

> On Fri, 27 Aug 2010 22:28:56 +0200, Steven Schveighoffer  
> <schveiguy at yahoo.com> wrote:
>
>> No, the code does this:
>>
>> f.writeln("hello");
>> f.writeln("world");
>>
>> The example is supposed to demonstrate how to re-open the file for  
>> appending and write "world".  Look at some of the other examples.  Not  
>> that it's a big deal, because I think it's just one more line.
>
>  From the OP:
>
>> Clarification:
>> * You should show how to do this in one programming language per answer  
>> only.
>> * Assume that the text file doesn't exist beforehand
>> * You don't need to reopen the text file after writing the first line
>
> The third point here might be important.

Yes, I've already acknowledged my mistake.  Thanks for pointing it out  
again ;)

-Steve


More information about the Digitalmars-d mailing list