On Fri, 27 Aug 2010 18:03:19 -0400, Simen kjaeraas <[email protected]> wrote:

On Fri, 27 Aug 2010 22:28:56 +0200, Steven Schveighoffer <[email protected]> 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

Reply via email to