file i/o in a variety of languages

Simen kjaeraas simen.kjaras at gmail.com
Fri Aug 27 15:03:19 PDT 2010


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.

-- 
Simen


More information about the Digitalmars-d mailing list