Running
FileSerializer s = new FileSerializer(); if (s.Open("$profile:test4.bin", FileMode.WRITE)) { Print("DEBUG WRITE - TEST") s.Write("TEST"); s.Close() } else { Print("DEBUG FAILED TO OPEN FOR WRITE") } for (int i = 0; i < 2; i++) { if (s.Open("$profile:test4.bin", FileMode.APPEND)) { Print("DEBUG APPEND - TEST") s.Write("TEST APPEND"); s.Close(); } else { Print("DEBUG FAILED TO OPEN FOR APPEND") } }
on top of void main() in init.c gives
SCRIPT : DEBUG WRITE - TEST SCRIPT : DEBUG APPEND - TEST SCRIPT : DEBUG APPEND - TEST
in the log (so opening the file doesn't fail), but even after a restart the content of test4.bin is only
00000000: 0400 0000 5445 5354 ....TEST
Append doesn't have a function at all on Linux currently.
My impression is that it got worst since the 1.27 bugfix, but I can't prove that.
https://github.com/Arkensor/DayZ-CommunityFramework/issues/183 is the result of this issue, maybe also https://feedback.bistudio.com/T189830