On Tue, 30 Jun 2015, Summers, Peter wrote:
>
>> From the bwrite doc it would seem that the dotdir is only used
>>> when you add a third parameter, bwrite(a, "a.xml", 1). So my
>> guess >is that the file goes into your current workdir instead (which
>> is >user-configurable).
>
>> Ah, right. Adding the 3rd argument successfully writes a.xml to
>> dotdir, but it's still empty.
> Are you using totally current CVS/snapshot? There was a bug that >Jack spotted
recently which could result in an empty file when >using bwrite(); it's now fixed.
> Allin
Well I thought I was, but I was mistaken. I'm now totally current,
and it works fine -- thanks!
FYI, the earlier version apparently 'filled' the empty file when
Gretl exited.
Yes. That was a rather dopey bug, I'm afraid: I forgot to "fclose"
the file after writing its content. Exiting the program would have
the effect of flushing and closing the file.
Allin