Filestream option

Monkey Forums/Monkey Bug Reports/Filestream option

Xaron(Posted 2013) [#1]
Hi all,

I just want to write a log file. Unfortunately if there is a crash, the latest messages in the stream are not written. So I just changed the filetest example from the bananas folder that way:



But that doesn't work as you can easily test. Opening a file for updating ("u") writing to it and closing it afterwards doesn't work as expected.


marksibly(Posted 2013) [#2]
Hi,

Update<>append - it basically just means the file isn't nuked when opened, which is what 'w' does.

I'll make this clearer in the docs, and probably add 'append'...


Xaron(Posted 2013) [#3]
Ah thanks Mark, that makes sense. Yes in that case an 'append' option would be great. Or something like 'flush'?


Xaron(Posted 2013) [#4]
Have you had any chance to add this already?


marksibly(Posted 2013) [#5]
Will add it for next release.