C stdio trickery for read/write mode
authorP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 19:16:57 +0000 (21:16 +0200)
committerP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 20:08:14 +0000 (22:08 +0200)
commit83b722ae4670ad289fedc0967d72c71cc5e2bab8
treef02601bb070831bd0e2bfba5571c70d75cbf9d39
parentbc2fc3a3b4232175aea93d251ac48664d486e6de
C stdio trickery for read/write mode

As pointed out in the new version of the Glk spec, when opening a file
for appending, you cannot seek in it. We must open the file for
appending, to make sure it is created, then close it and reopen it
for read/writing.

Fixes part of #34.
libchimara/stream.c